[Buildroot] [git commit] board/wandboard/post-build.sh: create boot.scr at TARGET_DIR/boot

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Apr 13 19:45:21 UTC 2020


commit: https://git.buildroot.net/buildroot/commit/?id=f14e95b3ff76a4a052a1d1a3fa6ac67fd5a3e911
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

There is no reason to create boot.scr at board/wandboard and later
install it at TARGET_DIR/boot, leaving a stale file behind.

Signed-off-by: Carlos Santos <unixmania at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 board/wandboard/post-build.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/board/wandboard/post-build.sh b/board/wandboard/post-build.sh
index 43e091c5d7..6ddc113702 100755
--- a/board/wandboard/post-build.sh
+++ b/board/wandboard/post-build.sh
@@ -2,7 +2,7 @@
 
 BOARD_DIR="$(dirname $0)"
 
-$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none  \
--n "boot script" -d $BOARD_DIR/boot.scr.txt $BOARD_DIR/boot.scr
+install -d -m 755 $TARGET_DIR/boot
 
-install -m 0644 -D $BOARD_DIR/boot.scr $TARGET_DIR/boot/boot.scr
+$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none  \
+	-n "boot script" -d $BOARD_DIR/boot.scr.txt $TARGET_DIR/boot/boot.scr


More information about the buildroot mailing list