Add default compile target & use it for bridge and busybox

git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3693 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Mike Baker 2006-04-21 10:03:46 +00:00
parent 38d10e52d5
commit 3960174fa9
3 changed files with 7 additions and 14 deletions

View File

@ -29,10 +29,6 @@ define Build/Configure
$(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR)) $(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
endef endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)
endef
define Package/busybox/install define Package/busybox/install
mkdir -p $(IDIR_BRIDGE)/usr/sbin mkdir -p $(IDIR_BRIDGE)/usr/sbin
$(CP) $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/ $(CP) $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/

View File

@ -30,15 +30,6 @@ define Build/Configure
yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig
endef endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) \
CROSS="$(TARGET_CROSS)" \
PREFIX="$(IDIR_BUSYBOX)" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
ARCH="$(ARCH)"
endef
define Package/busybox/install define Package/busybox/install
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(1)" \ $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(1)" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install

View File

@ -213,7 +213,13 @@ define Build/Configure
endef endef
define Build/Compile/Default define Build/Compile/Default
# TODO: add configurable default command $(MAKE) -C $(PKG_BUILD_DIR) \
CC=$(TARGET_CC) \
CROSS="$(TARGET_CROSS)" \
PREFIX="$$(IDIR_$(1))" \
EXTRA_CFLAGS="$(TARGET_CFLAGS)" \
ARCH="$(ARCH)" \
DESTDIR="$$(IDIR_$(1))"
endef endef
define Build/Compile define Build/Compile