源码是从 https://gitee.com/de-eem/openwrt 搬过来的
Go to file
Florian Fainelli e71cdf8127 package iproute2 has problems building on recent BSD-derived platforms because some programs to be run on the host use malloc.h in an incompatible way.
package/iproute2/patches/004-darwin_fixes.patch has a fix for Darwin,
however the fix can be made to work on other BSD platforms
by changing the patch as below.

I think a similar approach should work for other BSD-derived platforms,
replacing the
	#ifndef __APPLE__
with
	#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(...)

or perhaps even with just

	#ifdef __linux__

if the set of platforms where malloc.h is ok is small or restricted
to just linux

In any case, the patch is below. (#3869)
Signed-off-by: Luigi Rizzo <rizzo@iet.unipi.it>

SVN-Revision: 12249
2008-08-08 21:49:17 +00:00
docs add script for managing 'build environments' (.config+files/), including documentation 2008-08-06 14:30:46 +00:00
include update to 2.6.25.15 and 2.6.26.2 2008-08-07 16:52:52 +00:00
package package iproute2 has problems building on recent BSD-derived platforms because some programs to be run on the host use malloc.h in an incompatible way. 2008-08-08 21:49:17 +00:00
scripts scripts/feeds calls 'make' irrespective of the platform it is running on. The attached patch changes the code to use gmake if available (which should cover non-linux platforms, and is the same logic used to adapt other programs in include/host.mk) (#3867) 2008-08-08 21:30:08 +00:00
target fixes kernel oops when reset button was pressed too often on atheros 2008-08-08 14:12:04 +00:00
toolchain storm is ARMv4, not ARMv4T (thx, SeG) 2008-07-31 16:51:43 +00:00
tools Invert logic, first search for find as most people will build under Linux 2008-08-08 21:48:15 +00:00
.gitignore add missing gitignore change for build environments 2008-08-06 14:34:18 +00:00
BSDmakefile add missing copyright header 2007-02-26 01:05:09 +00:00
Config.in adds missing patch for native toolchain 2008-06-10 07:18:41 +00:00
feeds.conf update luci feed url to use http due to certificate issues 2008-08-07 13:26:10 +00:00
LICENSE finally move buildroot-ng to trunk 2016-03-20 17:29:15 +01:00
Makefile make package prereq checks behave more like build prereq checks (first check all, then fail if necessary), also make them less verbose 2008-08-04 23:15:17 +00:00
README add information about the tex4ht requirement for the docs 2007-02-26 01:06:41 +00:00
rules.mk add a variable that contains the proper architecture-dependent -fPIC/-fpic cflag for building shared libraries 2008-08-06 22:10:20 +00:00

This is the buildsystem for the OpenWrt Linux distribution

Please use "make menuconfig" to configure your appreciated
configuration for the toolchain and firmware.

You need to have installed gcc, binutils, patch, bzip2, flex, bison,
make, gettext, pkg-config, unzip, libz-dev and libc headers.

Simply running 'make' will build your firmware.
It will download all sources, build the cross-compile toolchain, 
the kernel and all choosen applications.

You can use scripts/flash.sh for remotely updating your embedded system
via tftp.

The OpenWrt system is documented in docs/. You will need a LaTeX distribution
and the tex4ht package to build the documentation. Type make -C docs/ to build it.

Building your own firmware you need to have access to a Linux, BSD or MacOSX system.
Cygwin will not be supported because of the lack of case sensitiveness.

Sunshine!
	Your OpenWrt Project
	http://openwrt.org