X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=scripts%2FMakefile.lib;h=cd815ac2a50b41da74f32d950b7e759e60f28605;hb=9ea07ec05e8030f6b4e12c4a41a9d633c0ccb618;hp=ffdafb26f5390b414d74ec07a1dde3078fd9a540;hpb=e33c01972239fee4696679ae5f7d1f340f424999;p=~andy%2Flinux diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index ffdafb26f53..cd815ac2a50 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -127,6 +127,11 @@ _c_flags += $(if $(patsubst n%,, \ $(CFLAGS_GCOV)) endif +ifdef CONFIG_SYMBOL_PREFIX +_cpp_flags += -DSYMBOL_PREFIX=$(patsubst "%",%,$(CONFIG_SYMBOL_PREFIX)) +endif + + # If building the kernel in a separate objtree expand all occurrences # of -Idir to -I$(srctree)/dir except for absolute paths (starting with '/'). @@ -208,7 +213,7 @@ cmd_gzip = (cat $(filter-out FORCE,$^) | gzip -f -9 > $@) || \ # Bzip2 and LZMA do not include size in file... so we have to fake that; # append the size as a 32-bit littleendian number as gzip does. -size_append = /bin/echo -ne $(shell \ +size_append = printf $(shell \ dec_size=0; \ for F in $1; do \ fsize=$$(stat -c "%s" $$F); \