Based on linux v4.10 patch: abac4c89731c02f28820d3e1bc66e85bca4baa20 kbuild: minor improvement for thin archives build The root built-in.o archive is currently generated before all object files are built for the final link, due to final build of init/ after version update. In practice it seems like it doesn't matter because the archive symbol table does not change, but it is more logical to create the final archive as the last step. Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx> Signed-off-by: Michal Marek <mmarek@xxxxxxxx> Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> --- scripts/link-barebox.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/link-barebox.sh b/scripts/link-barebox.sh index 34fa1944002c..6a134d2dd198 100755 --- a/scripts/link-barebox.sh +++ b/scripts/link-barebox.sh @@ -169,9 +169,6 @@ case "${KCONFIG_CONFIG}" in . "./${KCONFIG_CONFIG}" esac -archive_builtin -archive_builtin_pbl - # Update version info GEN .version if [ ! -r .version ]; then @@ -182,6 +179,9 @@ else expr 0$(cat .old_version) + 1 >.version; fi; +archive_builtin +archive_builtin_pbl + kallsymso="" kallsyms_barebox="" if [ -n "${CONFIG_KALLSYMS}" ]; then -- 2.19.2 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox