[PATCH 14/15] scripts: link-barebox: thin archives use P option to ar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Based on linux v4.13 patch: 9a6cfca4f4130444cb02536a4fdf7b6e285c713e

    kbuild: thin archives use P option to ar

    The P option makes ar do full path name matching and can prevent ar
    from discarding files with duplicate names in some cases of creating
    thin archives from thin archives. The sh architecture in particular
    loses some object files from its kernel/cpu/sh*/ directories without
    this option.

    This could be a bug in binutils ar, but the P option should not cause
    any negative effects so it is safe to use to work around this with.

    Signed-off-by: Nicholas Piggin <npiggin@xxxxxxxxx>
    Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>

Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx>
---
 scripts/link-barebox.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/link-barebox.sh b/scripts/link-barebox.sh
index 9e2bc2afd04b..74516f65b74f 100755
--- a/scripts/link-barebox.sh
+++ b/scripts/link-barebox.sh
@@ -51,7 +51,7 @@ archive_builtin()
 	if [ -n "${CONFIG_THIN_ARCHIVES}" ]; then
 		info AR built-in.o
 		rm -f built-in.o;
-		${AR} rcsT built-in.o ${BAREBOX_COMMON}
+		${AR} rcsTP built-in.o ${BAREBOX_COMMON}
 	fi
 }
 
@@ -68,7 +68,7 @@ archive_builtin_pbl()
 	if [ -n "${CONFIG_THIN_ARCHIVES}" ] &&  [ -n "${CONFIG_PBL_IMAGE}" ]; then
 		info PBLAR built-in-pbl.o
 		rm -f built-in-pbl.o;
-		${AR} rcsT built-in-pbl.o ${BAREBOX_PBL_COMMON}
+		${AR} rcsTP built-in-pbl.o ${BAREBOX_PBL_COMMON}
 	fi
 }
 
-- 
2.19.2


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux