mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 05:48:05 +02:00
add quotes to TARGET_CC and TARGET_CROSS to help with distcc and ccache
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@4429 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
26a4bd4099
commit
8b379ad629
@ -33,7 +33,7 @@ define Build/Compile
|
|||||||
rm -rf $(PKG_INSTALL_DIR)
|
rm -rf $(PKG_INSTALL_DIR)
|
||||||
mkdir -p $(PKG_INSTALL_DIR)
|
mkdir -p $(PKG_INSTALL_DIR)
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
|
CC="$(TARGET_CC)" LD="$(TARGET_CROSS)ld" \
|
||||||
COPT_FLAGS="$(TARGET_CFLAGS)" \
|
COPT_FLAGS="$(TARGET_CFLAGS)" \
|
||||||
KERNEL_DIR="./include/linux"
|
KERNEL_DIR="./include/linux"
|
||||||
endef
|
endef
|
||||||
|
@ -38,11 +38,11 @@ endef
|
|||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(SCRIPT_DIR)/gen_busybox_config.pl $(TOPDIR)/.config > $(PKG_BUILD_DIR)/.config
|
$(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
|
yes '' | $(MAKE) CC="$(TARGET_CC)" CROSS="$(TARGET_CROSS)" -C $(PKG_BUILD_DIR) oldconfig
|
||||||
endef
|
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
|
||||||
-rm -rf $(1)/lib64
|
-rm -rf $(1)/lib64
|
||||||
endef
|
endef
|
||||||
|
@ -81,11 +81,11 @@ endef
|
|||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
LD=$(TARGET_CC) \
|
LD="$(TARGET_CC)" \
|
||||||
PROGRAMS="dropbear dbclient dropbearkey scp" \
|
PROGRAMS="dropbear dbclient dropbearkey scp" \
|
||||||
MULTI=1 SCPPROGRESS=1
|
MULTI=1 SCPPROGRESS=1
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
LD=$(TARGET_CC) \
|
LD="$(TARGET_CC)" \
|
||||||
PROGRAMS="dropbearconvert"
|
PROGRAMS="dropbearconvert"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ define Build/Configure
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -j1 -C $(PKG_BUILD_DIR)/netem HOSTCC=$(HOSTCC) CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
|
$(MAKE) -j1 -C $(PKG_BUILD_DIR)/netem HOSTCC="$(HOSTCC)" CFLAGS="-D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I ../include -DRESOLVE_HOSTNAMES"
|
||||||
$(MAKE) -j1 -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
|
$(MAKE) -j1 -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) KERNEL_INCLUDE=$(LINUX_DIR)/include all tc/tc ip/ip
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
@ -163,8 +163,8 @@ define Build/Compile
|
|||||||
mkdir -p $(PKG_INSTALL_DIR)
|
mkdir -p $(PKG_INSTALL_DIR)
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
|
CC="$(TARGET_CC)" COPT_FLAGS="$(TARGET_CFLAGS)" \
|
||||||
KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
|
KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
|
||||||
DESTDIR="$(PKG_INSTALL_DIR)" \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
all install install-devel
|
all install install-devel
|
||||||
endef
|
endef
|
||||||
@ -173,8 +173,8 @@ endef
|
|||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
$(TARGET_CONFIGURE_OPTS) \
|
||||||
CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
|
CC="$(TARGET_CC)" COPT_FLAGS="$(TARGET_CFLAGS)" \
|
||||||
KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
|
KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
|
||||||
DESTDIR="$(STAGING_DIR)" \
|
DESTDIR="$(STAGING_DIR)" \
|
||||||
install install-devel
|
install install-devel
|
||||||
endef
|
endef
|
||||||
|
@ -61,7 +61,7 @@ define Build/Configure
|
|||||||
--enable-static \
|
--enable-static \
|
||||||
--disable-yydebug \
|
--disable-yydebug \
|
||||||
--enable-ipv6 \
|
--enable-ipv6 \
|
||||||
--with-build-cc=$(HOSTCC) \
|
--with-build-cc="$(HOSTCC)" \
|
||||||
--with-pcap=linux \
|
--with-pcap=linux \
|
||||||
);
|
);
|
||||||
endef
|
endef
|
||||||
|
@ -78,7 +78,7 @@ define Build/Compile
|
|||||||
# Work around openssl build bug to link libssl.so with libcrypto.so.
|
# Work around openssl build bug to link libssl.so with libcrypto.so.
|
||||||
-rm $(PKG_BUILD_DIR)/libssl.so.*.*.*
|
-rm $(PKG_BUILD_DIR)/libssl.so.*.*.*
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
|
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
|
||||||
CC=$(TARGET_CC) \
|
CC="$(TARGET_CC)" \
|
||||||
CCOPTS="$(TARGET_CFLAGS) -fomit-frame-pointer" \
|
CCOPTS="$(TARGET_CFLAGS) -fomit-frame-pointer" \
|
||||||
do_linux-shared
|
do_linux-shared
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
|
$(MAKE) -C $(PKG_BUILD_DIR) -j1 \
|
||||||
|
@ -87,7 +87,7 @@ define Build/Compile
|
|||||||
rm -rf $(PKG_INSTALL_DIR)
|
rm -rf $(PKG_INSTALL_DIR)
|
||||||
mkdir -p $(PKG_INSTALL_DIR)/usr
|
mkdir -p $(PKG_INSTALL_DIR)/usr
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
CC=$(TARGET_CC) \
|
CC="$(TARGET_CC)" \
|
||||||
COPTS="$(TARGET_CFLAGS)" \
|
COPTS="$(TARGET_CFLAGS)" \
|
||||||
PRECOMPILED_FILTER=1 \
|
PRECOMPILED_FILTER=1 \
|
||||||
STAGING_DIR="$(STAGING_DIR)" \
|
STAGING_DIR="$(STAGING_DIR)" \
|
||||||
|
@ -19,8 +19,8 @@ $(PKG_BUILD_DIR)/.prepared:
|
|||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.lzma
|
$(PKG_BUILD_DIR)/lzma.elf: $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/vmlinux.lzma
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) CC=$(TARGET_CC) \
|
$(MAKE) -C $(PKG_BUILD_DIR) CC="$(TARGET_CC)" \
|
||||||
LD=$(TARGET_CROSS)ld CROSS_COMPILE=$(TARGET_CROSS) \
|
LD="$(TARGET_CROSS)ld" CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
RAMSIZE=$(RAMSIZE) \
|
RAMSIZE=$(RAMSIZE) \
|
||||||
LOADADDR=$(LOADADDR) \
|
LOADADDR=$(LOADADDR) \
|
||||||
KERNEL_ENTRY=$(KERNEL_ENTRY) \
|
KERNEL_ENTRY=$(KERNEL_ENTRY) \
|
||||||
|
Loading…
Reference in New Issue
Block a user