Skip to content

Commit

Permalink
boards: replace $HOST_DIR/usr/ with $HOST_DIR/ in scripts
Browse files Browse the repository at this point in the history
Since things are no longer installed in $(HOST_DIR)/usr, the callers
should also not refer to it.

This is a mechanical change with
git grep -l 'HOST_DIR}\?/usr/' board | xargs sed -i 's%\(HOST_DIR}\?\)/usr/%\1/%g'

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  • Loading branch information
arnout authored and tpetazzoni committed Jul 5, 2017
1 parent b2ea6ea commit 31be2ec
Show file tree
Hide file tree
Showing 16 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions board/boundarydevices/common/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
BOARD_DIR="$(dirname $0)"

# bd u-boot looks for bootscript here
$HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
-n "boot script" -d $BOARD_DIR/6x_bootscript.txt $TARGET_DIR/6x_bootscript

# u-boot / update script for bd upgradeu command
if [ -e $BINARIES_DIR/u-boot.imx ];
then
install -D -m 0644 $BINARIES_DIR/u-boot.imx $TARGET_DIR/u-boot.imx
$HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
$HOST_DIR/bin/mkimage -A arm -O linux -T script -C none -a 0 -e 0 \
-n "upgrade script" -d $BOARD_DIR/6x_upgrade.txt $TARGET_DIR/6x_upgrade
fi
4 changes: 2 additions & 2 deletions board/chromebook/snow/mksd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
# cgpt does not create protective MBR, and the kernel refuses to read
# GPT unless there's some kind of MBR in sector 0. So we need parted
# to write that single sector before doing anything with the GPT.
cgpt=$HOST_DIR/usr/bin/cgpt
parted=$HOST_DIR/usr/sbin/parted
cgpt=$HOST_DIR/bin/cgpt
parted=$HOST_DIR/sbin/parted
kernel=$BINARIES_DIR/uImage.kpart
rootfs=$BINARIES_DIR/rootfs.ext2

Expand Down
6 changes: 3 additions & 3 deletions board/chromebook/snow/sign.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# The resulting file is called uImage.kpart.

BOARD_DIR=$(dirname $0)
mkimage=$HOST_DIR/usr/bin/mkimage
futility=$HOST_DIR/usr/bin/futility
devkeys=$HOST_DIR/usr/share/vboot/devkeys
mkimage=$HOST_DIR/bin/mkimage
futility=$HOST_DIR/bin/futility
devkeys=$HOST_DIR/share/vboot/devkeys

run() { echo "$@"; "$@"; }
die() { echo "$@" >&2; exit 1; }
Expand Down
2 changes: 1 addition & 1 deletion board/firefly/firefly-rk3288/post-image.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

MKIMAGE=$HOST_DIR/usr/bin/mkimage
MKIMAGE=$HOST_DIR/bin/mkimage

BOARD_DIR="$(dirname $0)"
GENIMAGE_CFG="${BOARD_DIR}/sd-image.cfg"
Expand Down
2 changes: 1 addition & 1 deletion board/friendlyarm/nanopi-neo/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# 2016, "Yann E. MORIN" <yann.morin.1998@free.fr>

BOARD_DIR="$( dirname "${0}" )"
MKIMAGE="${HOST_DIR}/usr/bin/mkimage"
MKIMAGE="${HOST_DIR}/bin/mkimage"
BOOT_CMD="${BOARD_DIR}/boot.cmd"
BOOT_CMD_H="${BINARIES_DIR}/boot.scr"

Expand Down
2 changes: 1 addition & 1 deletion board/lemaker/bananapro/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
find $TARGET_DIR/lib/firmware/brcm -type f -not -name "brcmfmac43362*" -delete

BOARD_DIR="$(dirname $0)"
MKIMAGE=$HOST_DIR/usr/bin/mkimage
MKIMAGE=$HOST_DIR/bin/mkimage
BOOT_CMD=$BOARD_DIR/boot.cmd
BOOT_CMD_H=$BINARIES_DIR/boot.scr

Expand Down
2 changes: 1 addition & 1 deletion board/linksprite/pcduino/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 2013, Carlo Caione <carlo.caione@gmail.com>

BOARD_DIR="$(dirname $0)"
MKIMAGE=$HOST_DIR/usr/bin/mkimage
MKIMAGE=$HOST_DIR/bin/mkimage
BOOT_CMD=$BOARD_DIR/boot.cmd
BOOT_CMD_H=$BINARIES_DIR/boot.scr

Expand Down
2 changes: 1 addition & 1 deletion board/nexbox/a95x/post-build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

BOARD_DIR="$(dirname $0)"
MKIMAGE=$HOST_DIR/usr/bin/mkimage
MKIMAGE=$HOST_DIR/bin/mkimage

$MKIMAGE -C none -A arm64 -T script -d $BOARD_DIR/boot.txt $BINARIES_DIR/boot.scr

Expand Down
2 changes: 1 addition & 1 deletion board/olimex/a13_olinuxino/post-build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

MKIMAGE=$HOST_DIR/usr/bin/mkimage
MKIMAGE=$HOST_DIR/bin/mkimage

$MKIMAGE -A arm -O linux -T script -C none \
-d board/olimex/a13_olinuxino/boot.cmd \
Expand Down
2 changes: 1 addition & 1 deletion board/orangepi/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 2013, Carlo Caione <carlo.caione@gmail.com>

BOARD_DIR="$(dirname $0)"
MKIMAGE=$HOST_DIR/usr/bin/mkimage
MKIMAGE=$HOST_DIR/bin/mkimage
BOOT_CMD=$BOARD_DIR/boot.cmd
BOOT_CMD_H=$BINARIES_DIR/boot.scr

Expand Down
2 changes: 1 addition & 1 deletion board/pc/post-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ __EOF__
else
BOOT_TYPE=bios
# Copy grub 1st stage to binaries, required for genimage
cp -f ${HOST_DIR}/usr/lib/grub/i386-pc/boot.img ${BINARIES_DIR}
cp -f ${HOST_DIR}/lib/grub/i386-pc/boot.img ${BINARIES_DIR}
fi

BOARD_DIR="$(dirname $0)"
Expand Down
2 changes: 1 addition & 1 deletion board/solidrun/mx6cubox/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BOARD_DIR="$(dirname $0)"

$HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none \
$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 -m 0644 -D $BOARD_DIR/boot.scr $TARGET_DIR/boot/boot.scr
2 changes: 1 addition & 1 deletion board/technologic/ts4800/post-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GENIMAGE_TMP=${BUILD_DIR}/.genimage_tmp

rm -rf ${GENIMAGE_TMP}

${HOST_DIR}/usr/bin/genimage \
${HOST_DIR}/bin/genimage \
--config ${GENIMAGE_CFG} \
--rootpath ${TARGET_DIR} \
--tmppath ${GENIMAGE_TMP} \
Expand Down
2 changes: 1 addition & 1 deletion board/technologic/ts4900/post-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GENIMAGE_TMP=$BUILD_DIR/.genimage_tmp

rm -rf $GENIMAGE_TMP

${HOST_DIR}/usr/bin/genimage \
${HOST_DIR}/bin/genimage \
--config ${GENIMAGE_CFG} \
--rootpath $TARGET_DIR \
--tmppath $GENIMAGE_TMP \
Expand Down
2 changes: 1 addition & 1 deletion board/udoo/neo/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BOARD_DIR="$(dirname $0)"

$HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none \
$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 -m 0644 -D $BOARD_DIR/boot.scr $TARGET_DIR/boot/boot.scr
2 changes: 1 addition & 1 deletion board/wandboard/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

BOARD_DIR="$(dirname $0)"

$HOST_DIR/usr/bin/mkimage -A arm -O linux -T script -C none \
$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 -m 0644 -D $BOARD_DIR/boot.scr $TARGET_DIR/boot/boot.scr

0 comments on commit 31be2ec

Please sign in to comment.