mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
Add default compile target & use it for bridge and busybox
SVN-Revision: 3693
This commit is contained in:
parent
ac2bee9082
commit
170f0e635c
@ -29,10 +29,6 @@ define Build/Configure
|
||||
$(call Build/Configure/Default,--with-linux-headers=$(LINUX_DIR))
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
endef
|
||||
|
||||
define Package/busybox/install
|
||||
mkdir -p $(IDIR_BRIDGE)/usr/sbin
|
||||
$(CP) $(PKG_BUILD_DIR)/brctl/brctl $(IDIR_BRIDGE)/usr/sbin/
|
||||
|
@ -30,15 +30,6 @@ define Build/Configure
|
||||
yes '' | $(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig
|
||||
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
|
||||
$(MAKE) CC=$(TARGET_CC) CROSS="$(TARGET_CROSS)" PREFIX="$(1)" \
|
||||
EXTRA_CFLAGS="$(TARGET_CFLAGS)" -C $(PKG_BUILD_DIR) install
|
||||
|
@ -213,7 +213,13 @@ define Build/Configure
|
||||
endef
|
||||
|
||||
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
|
||||
|
||||
define Build/Compile
|
||||
|
Loading…
Reference in New Issue
Block a user