c0f8113f86
When include/applets.h is re-generated it generates code macros in include/applets.h e.g. IF_XZCAT(APPLET_ODDNAME(xzcat, unxz, BB_DIR_USR_BIN, BB_SUID_DROP, xzcat)) ... IF_CHVT(APPLET_NOEXEC(chvt, chvt, BB_DIR_USR_BIN, BB_SUID_DROP, chvt)) ... sed is used to process source files like below to feed into this header generation sed -n 's@^//applet:@@p' "$srctree"/*/*.c "$srctree"/*/*/*.c this means we let shell decide the order of .c files being fed into sed tool, applets.h has code snippets thats generated out of code fragments from these .c files and the order of the generated code depends on the order of .c files being fed to sed and then piped to generate tool, even though the generated code is logically same, it does result in re-odered code in applets.h based on which shell was used during build on exact busybox sources since sort order is different based on chosen locale and also default shell being bash or dash This sets the environment variable LC_ALL to the value C, which will enforce bytewise sorting, irrespective of the shell Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
basic | ||
kconfig | ||
bb_release | ||
bloat-o-meter | ||
checkhelp.awk | ||
checkstack.pl | ||
cleanup_printf2puts | ||
echo.c | ||
embedded_scripts | ||
find_bad_common_bufsiz | ||
find_stray_common_vars | ||
find_stray_empty_lines | ||
fix_ws.sh | ||
gcc-version.sh | ||
gen_build_files.sh | ||
generate_BUFSIZ.sh | ||
Kbuild.include | ||
Kbuild.src | ||
Makefile.build | ||
Makefile.clean | ||
Makefile.host | ||
Makefile.IMA | ||
Makefile.lib | ||
memusage | ||
mkconfigs | ||
mkdiff_obj | ||
mkdiff_obj_bloat | ||
mkmakefile | ||
objsizes | ||
randomtest | ||
randomtest.loop | ||
sample_pmap | ||
showasm | ||
test_make_clean | ||
test_make_O | ||
test_setenv_leak.c | ||
trylink |