summaryrefslogtreecommitdiff
path: root/mk/kernel-vars.mk
AgeCommit message (Collapse)Author
2017-07-06linux: fix cross-compile issues on MacOS X, too old /bin/shWaldemar Brodkorb
2017-07-04linux: fix compile of host-tools on non-Linux hosts, reported by DiezWaldemar Brodkorb
2016-07-05allow to cross-compile x86_64 kernel on DarwinWaldemar Brodkorb
2016-05-13fix building for imgtec ci20, add helper header for DarwinWaldemar Brodkorb
2015-12-13rework prereq checkWaldemar Brodkorb
The new prereq check is completely implemented in POSIX shell in scripts/prereq.sh. It combines the old features from Makefile, scan-tools.sh, scan-pkgs.sh, reloc.sh and some wrappers for tools. The big benefit is to have all portability stuff in one place. Furthermore we can compile GNU make and bash on the fly, for systems lacking the required tools. All changes on the host are detected on the fly, no make prereq required anymore. The build process is separated in following three phases: 1. small wrapper Makefile is used for BSD make or GNU make 2. prereq.sh is called, doing all checking, calling Makefile.adk 3. old logic in Makefile.adk or mk/build.mk is used Tested successfully on Linux, MacOS X, Cygwin, FreeBSD, OpenBSD and NetBSD. An old depmaker bug was fixed, only optional host tools are compiled. For example, even when a host provides xz, a local xz was compiled in the past, because other packages had a build dependency on it. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
2015-08-03rework kernel module infrastructureWaldemar Brodkorb
Instead of maintaining mk/modules.mk which defines compilations of related kernel modules to pack together into a single package, follow an automatic approach: For every kernel module found in the modules installation directory, create a single package. There are a few caveats to cover: === Module Loading Order === Upon bootup, module loading is ordered based on the number-prefixed files in /etc/modules.d/. The correct number was previously managed in mk/modules.mk on a per-collection basis. The new approach is to have levels which modules are to be assigned to. Level 0 contains modules with no dependencies at all. Level 1 contains modules which have only level 0 dependencies, and so on. This information is determined at compile-time by make-module-ipkgs.sh. === Module Installation to Target RootFS === Since module packages are created automatically from the modules the script finds, ADK build system has no knowledge about the connection between what the user has selected in menuconfig and the actual module packages. Therefore the earlier approach to install selected packages into rootfs does not hold anymore. Instead, use wildcards to find all packages in firmware directory prefixed by 'kmod-' and install them all (hopefully doing the right thing). === Kernel Version === KERNEL_VERSION now contains KERNEL_RELEASE already By creating a localversion file, make KERNEL_RELEASE part of the kernel's version number (so KERNEL_VERSION is correct in most situations) Signed-off-by: Phil Sutter <phil@nwl.cc>
2015-07-30uImage is mandatory, add LOADADDRWaldemar Brodkorb
2015-05-21fix kernel compile on DarwinWaldemar Brodkorb
2015-04-26remove -C $(LINUX_DIR) from OPTS variableWaldemar Brodkorb
Otherwise toolchain only compiling of gcc is failing while trying to install header files.
2015-02-28extend KERNEL_MAKE_OPTS by the target directoryPhil Sutter
This change is straightforward but in toolchain/kernel-headers/Makefile which seems to be called before ${BUILD_DIR}/linux symlink exists. Therefore define LINUX_DIR to the correct value in between inclusion of vars.mk (through rules.mk) and kernel-vars.mk.
2014-08-26we need to remove crtbegin.o/crtend.o from gcc specs file. otherwise broken ↵Waldemar Brodkorb
executables (f.e. sash) with a wrong data start are created by elf2flt)
2014-06-16fixup CC_FOR_BUILD conversion, another oneWaldemar Brodkorb
2014-06-08use ADK_TARGET_KARCH for kernel stuff, fix ppc buildWaldemar Brodkorb
2014-06-02simplify adding new archWaldemar Brodkorb
Generate all data needed when adding a new arch or system. Recognize any changes in target/*/systems as reported as bug by Joerg.
2014-06-02refactor CPU_ARCH/ARCH variablesWaldemar Brodkorb
After Joerg asked me about the difference between ADK_TARGET_ARCH and ADK_TARGET_CPU_ARCH I recognized many duplication of variables for this information. These patch fixes this up. Use make cleandir && make menuconfig && make
2014-05-24remove 3.13 kernel, add generic kernel version symbolsWaldemar Brodkorb
2014-05-05gnu sed no longer required, will be build as hosttoolWaldemar Brodkorb
2014-03-15fix kernel build on Darwin for x86 targetsWaldemar Brodkorb
relocs tool uses some kind of regular expression, which does not work with the provided one. Use pcre in this case. Rework KERNEL_MAKE_OPTS while here. Use it in kernel-header, too.
2014-03-06get rid of ADK_NATIVE mode, it is not regulary tested and the results where ↵Waldemar Brodkorb
not satisfying.
2014-03-01move target/tools to tools, use ADK_HOST_NEED variable to build a tool, when ↵Waldemar Brodkorb
required. Add archivers to tools, remove prereq checks for them. Rename host_ dir in preparation for shared openadk source via nfs/smb from different host systems. Make some abi cleanup
2014-02-18use bin directory for host binaries only, use new firmware directory for the ↵Waldemar Brodkorb
resulting firmware
2014-01-08use bash for kernel stuffWaldemar Brodkorb
2014-01-08use tools dir before PATH, fix ulimit ksh problemWaldemar Brodkorb
2012-01-17make broadcom devices work with selfrelocatable bootloader (even Asus WL500gp)Waldemar Brodkorb
2011-11-04move mkimage build to toplevel tools directory, required for avr32 kernel buildWaldemar Brodkorb
2011-04-27fix aligning of partitions, prepare for Netgear WGT634u with bigger CFE sizeWaldemar Brodkorb
2011-04-26add model support for broadcom devicesWaldemar Brodkorb
2011-01-22activate GCC cflags check, cleanup FLAGS stuff in OpenADK.Waldemar Brodkorb
* remove TCFLAGS/TLDFLAGS/TCPPFLAGS and only use TARGET_CFLAGS/TARGET_LDFLAGS/TARGET_CPPFLAGS, ... * activate GCC_HONOUR_COPTS and fix all packages to honour CFLAGS * use CC_FOR_BUILD, CFLAGS_FOR_BUILD, ... for all build compilation, remove HOST* variants * introduce KERNEL_MODULE_FLAGS for external kernel modules * mark rpm package as broken, mark syslinux for native builds only, mark libhugetlb for eglibc/glibc only usage
2011-01-07=?utf-8?q?fix=20bcm47xx=20flash=20size=20(by=20passing=20the=20correct=20val ↵Thorsten Glaser
ue=20via=20environment) =20and=20honour=20HOSTCFLAGS=20better=20(still=20not=20fully=20=E2=98=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
2010-12-13remove empty lineWaldemar Brodkorb
2009-12-19add more mirbsd compatibility patchesWaldemar
2009-12-17add sangam-atm packageWaldemar Brodkorb
- driver package for ag241 dsl modem, it loads, but we will see if it works..