aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu/image/armada-388-clearfog-pro.bootscript
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2019-05-11 19:37:30 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-05-11 23:11:04 +0200
commitfb005d688ea2955df89279d75499fca26e2f6f00 (patch)
treebdc3278eca2474ae0fea7c99bbb701f1e11f6b4a /target/linux/mvebu/image/armada-388-clearfog-pro.bootscript
parentef384c68e7271a6e9a652e26fe8adf4c822f0213 (diff)
downloadupstream-fb005d688ea2955df89279d75499fca26e2f6f00.tar.gz
upstream-fb005d688ea2955df89279d75499fca26e2f6f00.tar.bz2
upstream-fb005d688ea2955df89279d75499fca26e2f6f00.zip
mvebu: image: introduce BOOT_SCRIPT variable
All of U-Boot scripts repeat the same pattern with only Device Tree blob name changing for respective device. Therefore create generic scripts which will be altered on demad by image build process, and create BOOT_SCRIPT variable which can be added to device recipe and will allow referencing the same script by many device recipes. This will allow to slim down the ammount of files in buildroot tree and avoid needlessly incrementing amount of boot scripts if new devices will be added. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target/linux/mvebu/image/armada-388-clearfog-pro.bootscript')
-rw-r--r--target/linux/mvebu/image/armada-388-clearfog-pro.bootscript27
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/mvebu/image/armada-388-clearfog-pro.bootscript b/target/linux/mvebu/image/armada-388-clearfog-pro.bootscript
deleted file mode 100644
index 99aa145858..0000000000
--- a/target/linux/mvebu/image/armada-388-clearfog-pro.bootscript
+++ /dev/null
@@ -1,27 +0,0 @@
-# Standard Boot-Script
-# use only well-known variable names provided by U-Boot Distro boot
-# This script assumes that there is a boot partition,
-# and that the root partition is always the next one.
-
-# Override DeviceTree for Clearfog Pro
-# removed once U-Boot has been updated to the new name.
-setenv fdtfile armada-388-clearfog-pro.dtb
-
-# rootfs is always on the next partition
-setexpr openwrt_rootpart ${distro_bootpart} + 1
-
-# figure out partition uuid to pass to the kernel as root=
-part uuid ${devtype} ${devnum}:${openwrt_rootpart} uuid
-
-# generate bootargs (rootfs)
-setenv bootargs ${bootargs} root=PARTUUID=${uuid} rootfstype=auto rootwait
-
-# add console= option to bootargs, if any
-if test -n "${console}"; then
- setenv bootargs ${bootargs} console=${console}
-fi
-
-echo "Booting Linux with ${bootargs}"
-load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${fdtfile}
-load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
-bootz ${kernel_addr_r} - ${fdt_addr_r}