From bbd610f15a71b27c955175cb98392b114717fd47 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 27 May 2009 22:14:21 +0200 Subject: native build support - just use native gcc and binutils to compile a system - can be used to chroot into it - maybe useful later on lemote book to build packages natively --- mk/build.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mk/build.mk') diff --git a/mk/build.mk b/mk/build.mk index 79406bf9f..ef40ec962 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -18,8 +18,8 @@ noconfig_targets:= menuconfig \ _mconfig \ tags -MAKECLEAN_SYMBOLS= ADK_TARGET_LIB_UCLIBC ADK_TARGET_LIB_GLIBC ADK_SSP ADK_IPV6 ADK_CXX \ - ADK_DEBUG +MAKECLEAN_SYMBOLS= ADK_TARGET_LIB_UCLIBC ADK_TARGET_LIB_GLIBC ADK_SSP \ + ADK_IPV6 ADK_CXX ADK_DEBUG POSTCONFIG= -@\ if [ -f .config.old ];then \ if [ -d .cfg ];then \ @@ -57,7 +57,11 @@ all: world world: $(DISTDIR) $(BUILD_DIR) $(TARGET_DIR) $(PACKAGE_DIR) ${TOPDIR}/.cfg/ADK_HAVE_DOT_CONFIG ${BASH} ${TOPDIR}/scripts/scan-pkgs.sh +ifeq ($(ADK_NATIVE),y) + $(MAKE) -f mk/build.mk toolchain/kernel-headers-prepare target/config-prepare target/compile package/compile root_clean package/install package_index target/install +else $(MAKE) -f mk/build.mk toolchain/install target/config-prepare target/compile package/compile root_clean package/install package_index target/install +endif package_index: -cd ${PACKAGE_DIR} && \ -- cgit v1.2.3