X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=scripts%2FMakefile.lib;h=cd815ac2a50b41da74f32d950b7e759e60f28605;hb=fc6f0700d5cd54b5f8b30c4f0d93b06a6ba04b81;hp=ffdafb26f5390b414d74ec07a1dde3078fd9a540;hpb=83be7d764dc4b860712e392197ec27645f9d74a8;p=linux-2.6-block.git diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index ffdafb26f539..cd815ac2a50b 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); \