Skip to content

Commit

Permalink
Makefile: Allow specifying target gcc environment variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Milosavljevic committed May 2, 2020
1 parent 340e66a commit ce3a665
Show file tree
Hide file tree
Showing 34 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ $(COREBOOT_UTIL_DIR)/superiotool/superiotool \
$(COREBOOT_UTIL_DIR)/inteltool/inteltool \
: $(build)/$(coreboot_base_dir)/.canary
+$(call do,MAKE,$(notdir $@),\
CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH= $(MAKE) -C "$(dir $@)" $(CROSS_TOOLS) \
CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)" $(MAKE) -C "$(dir $@)" $(CROSS_TOOLS) \
)

# superio depends on zlib and pciutils
Expand Down
2 changes: 1 addition & 1 deletion modules/busybox
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ busybox_hash := 604553b7dbd59ded9e3ad7c6af49ed2cff599adf3e54d9463e5e0027b362019c
busybox_configure := $(MAKE) CC="$(heads_cc)" oldconfig
busybox_config := config/busybox.config
busybox_output := busybox
busybox_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
busybox_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
busybox_target := \
$(CROSS_TOOLS) \
$(MAKE_JOBS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/cairo
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cairo_configure := \
&& mv libtool-2 libtool \
&& chmod 755 libtool

cairo_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
cairo_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
cairo_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/cryptsetup
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cryptsetup_configure := ./configure \

# but after building, replace prefix so that they will be installed
# in the correct directory.
cryptsetup_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
cryptsetup_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
cryptsetup_target := \
$(MAKE_JOBS) \
&& $(MAKE) \
Expand Down
2 changes: 1 addition & 1 deletion modules/dropbear
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dropbear_configure := ./configure \
--disable-wtmpx \

dropbear_output := ssh scp dropbear
dropbear_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
dropbear_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
dropbear_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/fbwhiptail
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fbwhiptail_version := git
fbwhiptail_dir := fbwhiptail
fbwhiptail_repo := https://source.puri.sm/coreboot/fbwhiptail.git

fbwhiptail_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
fbwhiptail_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
fbwhiptail_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/flashrom
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ flashrom_tar := flashrom-$(flashrom_version).tar.bz2
flashrom_url := https://download.flashrom.org/releases/$(flashrom_tar)
flashrom_hash := e1f8d95881f5a4365dfe58776ce821dfcee0f138f75d0f44f8a3cd032d9ea42b

flashrom_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
flashrom_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
flashrom_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/flashtools
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ flashtools_tar := flashtools-$(flashtools_version).tar.gz
flashtools_url := https://github.com/osresearch/flashtools/archive/v$(flashtools_version).tar.gz
flashtools_hash := e8205aa3d19e536080f5974ed06ab9a88c4c3f37870c2f6a3a08a2f39302c22c

flashtools_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
flashtools_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
flashtools_target := \
$(CROSS_TOOLS) \
CFLAGS="-I$(INSTALL)/include" \
Expand Down
2 changes: 1 addition & 1 deletion modules/frotz
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ frotz_hash := dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f

frotz_configure := touch .config

frotz_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
frotz_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
frotz_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/gpg
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ gpg_configure := ./configure \
# Run one build to generate the executables with the pre-defined
# exec_prefix and datarootdir, then a second make to install the binaries
# into our actual target location
gpg_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
gpg_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
gpg_target := $(MAKE_JOBS) \
&& $(MAKE) -C $(build)/$(gpg_dir) \
DESTDIR="$(INSTALL)" \
Expand Down
2 changes: 1 addition & 1 deletion modules/gpg2
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ gpg2_configure := ./configure \
# Run one build to generate the executables with the pre-defined
# exec_prefix and datarootdir, then a second make to install the binaries
# into our actual target location
gpg2_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
gpg2_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
gpg2_target := $(MAKE_JOBS) \
&& $(MAKE) -C $(build)/$(gpg2_dir) \
DESTDIR="$(INSTALL)" \
Expand Down
2 changes: 1 addition & 1 deletion modules/kexec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ kexec_configure := ./configure \
--without-lzma \
&& $(MAKE) clean

kexec_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
kexec_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
kexec_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/libassuan
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ libassuan_configure := ./configure \
--with-libgpg-error-prefix="$(INSTALL)" \
--disable-asm \

libassuan_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
libassuan_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
libassuan_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
$(CROSS_TOOLS) \
Expand Down
3 changes: 2 additions & 1 deletion modules/libgcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ libgcrypt_configure := ./configure \
--with-libgpg-error-prefix="$(INSTALL)" \
--disable-asm \

libgcrypt_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
libgcrypt_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_
C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
libgcrypt_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/libgpg-error
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ libgpg-error_configure := ./configure \
--disable-tests \
--disable-asm \

libgpg-error_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH= CC_FOR_BUILD="$(CC_FOR_BUILD)"
libgpg-error_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)" CC_FOR_BUILD="$(CC_FOR_BUILD)"
libgpg-error_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/libksba
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ libksba_configure := ./configure \
--with-libgpg-error-prefix="$(INSTALL)" \
--disable-asm \

libksba_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
libksba_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
libksba_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/libpng
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ libpng_configure := \
--host i386-elf-linux \
--prefix="/" \

libpng_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
libpng_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
libpng_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/libremkey-hotp-verification
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ libremkey-hotp-verification_tar := nitrokey-hotp-verification-$(libremkey-hotp-v
libremkey-hotp-verification_url := https://github.com/Nitrokey/nitrokey-hotp-verification/archive/$(libremkey-hotp-verification_version).tar.gz
libremkey-hotp-verification_hash := 668113ebc21cc875d49266c8d3a47acfd524a8d6b64f75b7ce5833d595415469

libremkey-hotp-verification_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
libremkey-hotp-verification_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
libremkey-hotp-verification_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/libusb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ libusb_configure := ./configure\
# exec_prefix and datarootdir, then a second make to install the binaries
# into our actual target location

libusb_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
libusb_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
libusb_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/libusb-compat
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ libusb-compat_configure := ./configure \
# Run one build to generate the executables with the pre-defined
# exec_prefix and datarootdir, then a second make to install the binaries
# into our actual target location
libusb-compat_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
libusb-compat_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
libusb-compat_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/lvm2
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ lvm2_configure := \
--with-cluster=none \

# not sure why LIB_SUFFIX is not defined in the cross build
lvm2_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
lvm2_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
lvm2_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/mbedtls
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ mbedtls_libraries := library/libmbedcrypto.so.0

mbedtls_configure :=

mbedtls_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
mbedtls_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
mbedtls_target := \
SHARED=1 \
DESTDIR=$(INSTALL) \
Expand Down
2 changes: 1 addition & 1 deletion modules/msrtools
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msrtools_tar := msr-tools-$(msrtools_version).tar.gz
msrtools_url := https://github.com/osresearch/msr-tools/archive/$(msrtools_version).tar.gz
msrtools_hash := 80554790d0a404205fe215c9ae8d2de159e980ec23821d636f201f12550e6ac0

msrtools_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
msrtools_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
msrtools_target := \
$(CROSS_TOOLS) \
CFLAGS="-I$(INSTALL)/include" \
Expand Down
2 changes: 1 addition & 1 deletion modules/newt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ newt_tar := newt-$(newt_version).tar.gz
newt_url := https://releases.pagure.org/newt/$(newt_tar)
newt_hash := 8d66ba6beffc3f786d4ccfee9d2b43d93484680ef8db9397a4fb70b5adbb6dbc

newt_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
newt_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
newt_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/npth
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ npth_configure := ./configure \
--with-libgpg-error-prefix="$(INSTALL)" \
--disable-asm \

npth_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
npth_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
npth_target := $(MAKE_JOBS) \
DESTDIR="$(INSTALL)" \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/pciutils
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pciutils_hash := 64293c6ab9318c40ef262b76d87bd9097531759752bac556e50979b1e63cfe6
# reproducible. Otherwise the build path will be embedded
# in the library and executables.

pciutils_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
pciutils_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
pciutils_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/pinentry
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pinentry_configure := ./configure \
# Run one build to generate the executables with the pre-defined
# exec_prefix and datarootdir, then a second make to install the binaries
# into our actual target location
pinentry_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
pinentry_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
pinentry_target := $(MAKE_JOBS) \
&& $(MAKE) -C $(build)/$(pinentry_dir) \
DESTDIR="$(INSTALL)" \
Expand Down
2 changes: 1 addition & 1 deletion modules/pixman
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pixman_configure := \
--prefix="/" \
--disable-gtk

pixman_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
pixman_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
pixman_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/popt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ popt_configure := ./configure \
--prefix "/" \
--host i386-elf-linux \

popt_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
popt_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
popt_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/qrencode
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ qrencode_configure := ./configure \
--without-tools \
--host i386-elf-linux \

qrencode_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
qrencode_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
qrencode_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/slang
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ slang_configure := ./configure \
&& mkdir -p src/elfobjs

# Disable parallel make for the install target
slang_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
slang_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
slang_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/tpmtotp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ tpmtotp_tar := tpmtotp-$(tpmtotp_version).tar.gz
tpmtotp_url := https://github.com/osresearch/tpmtotp/archive/$(tpmtotp_version).tar.gz
tpmtotp_hash := 1082f2b0e4af833e04220dddedcc21a39eb39ee4dc5668bb010e7bcc795c606c

tpmtotp_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
tpmtotp_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
tpmtotp_target := \
$(CROSS_TOOLS) \
CFLAGS="-I$(INSTALL)/include" \
Expand Down
2 changes: 1 addition & 1 deletion modules/util-linux
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ util-linux_configure := ./configure \
--enable-libblkid \


util-linux_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
util-linux_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
util-linux_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down
2 changes: 1 addition & 1 deletion modules/zlib
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ zlib_configure := \
./configure \
--prefix="/" \

zlib_make_environment := CPATH= C_INCLUDE_PATH= CPLUS_INCLUDE_PATH= LIBRARY_PATH=
zlib_make_environment := CPATH="$(TARGET_CPATH)" C_INCLUDE_PATH="$(TARGET_C_INCLUDE_PATH)" CPLUS_INCLUDE_PATH="$(TARGET_CPLUS_INCLUDE_PATH)" OBJC_INCLUDE_PATH="$(TARGET_OBJC_INCLUDE_PATH)" LIBRARY_PATH="$(TARGET_LIBRARY_PATH)"
zlib_target := \
$(MAKE_JOBS) \
$(CROSS_TOOLS) \
Expand Down

0 comments on commit ce3a665

Please sign in to comment.