summaryrefslogtreecommitdiff
path: root/package/busybox
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-27 22:14:21 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-27 22:14:21 +0200
commitbbd610f15a71b27c955175cb98392b114717fd47 (patch)
tree13d196e0e70c15c119336f59fa8f7183884590d5 /package/busybox
parentbad63eb735b13e1f009a19af1dd810f7279c2ba1 (diff)
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
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index cf0a9ba0e..e8edcd12b 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -22,18 +22,35 @@ do-configure:
grep BUSYBOX_ $(TOPDIR)/.config|sed -e 's/BUSYBOX_/CONFIG_/' > \
${WRKBUILD}/.config
$(SED) 's@IDIR@${WRKINST}' ${WRKBUILD}/.config
+ifeq ($(ADK_NATIVE),y)
+ yes '' | \
+ $(MAKE) V=1 \
+ IPKG_ARCH="$(ARCH)" \
+ ARCH="$(ARCH)" -C $(WRKBUILD) oldconfig
+else
yes '' | \
$(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" IPKG_ARCH="$(ARCH)" \
ARCH="$(ARCH)" -C $(WRKBUILD) oldconfig
+endif
do-build:
+ifeq ($(ADK_NATIVE),y)
+ $(MAKE) V=1 \
+ IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" -C $(WRKBUILD)
+else
$(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" -C $(WRKBUILD)
+endif
do-install: ${TOPDIR}/.config
+ifeq ($(ADK_NATIVE),y)
+ $(MAKE) V=1 \
+ IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" -C $(WRKBUILD) install
+else
$(MAKE) V=1 CROSS_COMPILE="$(TARGET_CROSS)" \
IPKG_ARCH="$(ARCH)" ARCH="$(ARCH)" -C $(WRKBUILD) install
+endif
ifeq ($(DEBUG),1)
${INSTALL_BIN} $(WRKBUILD)/busybox_unstripped \
$(IDIR_BUSYBOX)/bin/busybox