use musl-libc cross compiler strip (issue #100)

This commit is contained in:
Trammell Hudson 2017-01-31 14:57:41 -05:00
parent 3008bb6945
commit e051915707
Failed to extract signature
2 changed files with 6 additions and 3 deletions

View File

@ -23,6 +23,8 @@ heads_cc := $(INSTALL)/bin/musl-gcc \
-fdebug-prefix-map=$(pwd)=heads \
-gno-record-gcc-switches \
CROSS := $(pwd)/crossgcc/x86_64-linux-musl/bin/x86_64-musl-linux-
#heads_cc := $(HOME)/install/x86_64-linux-musl/x86_64-linux-musl/bin/gcc
all: $(BOARD).rom
@ -127,7 +129,7 @@ define define_module =
$(MAKE) -C "$(build)/$($1_dir)" $($1_target)
$1.clean:
-$(RM) "$(build)/$($1_dir)/.configured
-$(RM) "$(build)/$($1_dir)/.configured"
-$(MAKE) -C "$(build)/$($1_dir)" clean
.INTERMEDIATE: $1.intermediate
@ -211,14 +213,14 @@ $(build)/$(coreboot_dir)/util/cbmem/cbmem: \
# that were installed.
initrd_lib_install: $(initrd_bins) $(initrd_libs)
-find initrd/bin -type f -a ! -name '*.sh' -print0 \
| xargs -0 strip
| xargs -0 $(CROSS)strip
LD_LIBRARY_PATH="$(INSTALL)/lib" \
./populate-lib \
$(initrd_lib_dir) \
initrd/bin/* \
initrd/sbin/* \
-strip $(initrd_lib_dir)/* ; true
-$(CROSS)strip $(initrd_lib_dir)/* ; true
#

View File

@ -8,6 +8,7 @@ kexec_hash := cc7b60dad0da202004048a6179d8a53606943062dd627a2edba45a8ea3a85135
kexec_configure := ./configure \
CC="$(heads_cc)" \
STRIP="$(CROSS)/strip" \
--host i386-elf-linux \
--target x86_64 \
--prefix="$(INSTALL)" \