diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-04-14 03:03:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-04-14 03:03:32 +0000 |
commit | bd3ddbfb67ec47a43d424857345aef71aff6b9d2 (patch) | |
tree | d594ea3cd80e28bea689441657162bd78b0e4cd3 /package/busybox/Makefile | |
parent | 04e6fec4e07772f1bddf5da19584e7ce06237425 (diff) | |
download | upstream-bd3ddbfb67ec47a43d424857345aef71aff6b9d2.tar.gz upstream-bd3ddbfb67ec47a43d424857345aef71aff6b9d2.tar.bz2 upstream-bd3ddbfb67ec47a43d424857345aef71aff6b9d2.zip |
new package makefile syntax
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3645 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/Makefile')
-rw-r--r-- | package/busybox/Makefile | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile index 3ada74532e..009a64a212 100644 --- a/package/busybox/Makefile +++ b/package/busybox/Makefile @@ -21,20 +21,25 @@ CATEGORY:=Base system TITLE:=Core utilities DESCRIPTION:=Core utilities for embedded Linux systems endef -$(eval $(call BuildPackage,BUSYBOX,busybox)) -$(PKG_BUILD_DIR)/.configured: +define Build/Configure $(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig - touch $@ +endef -$(PKG_BUILD_DIR)/.built: - $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \ - EXTRA_CFLAGS="$(TARGET_CFLAGS)" ARCH="$(ARCH)" -C $(PKG_BUILD_DIR) - touch $@ +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + CC=$(TARGET_CC) \ + CROSS="$(TARGET_CROSS)" \ + PREFIX="$(IDIR_BUSYBOX)" \ + EXTRA_CFLAGS="$(TARGET_CFLAGS)" \ + ARCH="$(ARCH)" +endef -$(IPKG_BUSYBOX): - $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(IDIR_BUSYBOX)" \ +define Package/busybox/install + $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(1)" \ EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install - $(STRIP) $(IDIR_BUSYBOX)/bin/busybox - $(IPKG_BUILD) $(IDIR_BUSYBOX) $(PACKAGE_DIR) + $(STRIP) $(1)/bin/busybox +endef + +$(eval $(call BuildPackage,busybox)) |