diff options
author | Chris Renshaw <osm0sis@outlook.com> | 2019-06-01 01:30:56 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-01 01:30:56 -0300 |
commit | c8d087bbad6442546a3f85610e3eaa2d867de021 (patch) | |
tree | f60dc0036e3659b2c71e19777fa6ec0b1c86c4fa /tools | |
parent | a10312941ade81955d2217caa0e90dae553bb697 (diff) |
AK3: fix elftool repack cmdline handling
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/ak3-core.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index af183d3..20fdac2 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -201,7 +201,7 @@ repack_ramdisk() { # flash_boot (build, sign and write image only) flash_boot() { - local varlist kernel ramdisk part0 part1 pk8 cert avbtype; + local varlist kernel ramdisk cmdline part0 part1 pk8 cert avbtype; cd $split_img; if [ -f "$bin/mkimage" ]; then @@ -258,7 +258,7 @@ flash_boot() { $bin/mkimage -A $arch -O $os -T $type -C $comp -a $addr -e $ep -n "$name" -d $part0$part1 $home/boot-new.img; elif [ -f "$bin/elftool" ]; then test "$dt" && dt="$dt,rpm"; - test "$cmdline" && cmdline="cmdline.txt@cmdline"; + test -f cmdline.txt && cmdline="cmdline.txt@cmdline"; $bin/elftool pack -o $home/boot-new.img header=elftool_out/header $kernel $ramdisk,ramdisk $dt $cmdline; elif [ -f "$bin/mboot" ]; then cp -f $kernel kernel; |