mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
Store FIT headers separately on aux, and place the raw SquashFS images on primary/secondary. This removes the need to muck about with the device mapper to setup the rootfs, and it allows us to boot using syslinux files.
23 lines
471 B
Bash
Executable File
23 lines
471 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
common=$(dirname $(readlink -f "$0"))
|
|
root=$BUILD_DIR/genimage.root
|
|
tmp=$BUILD_DIR/genimage.tmp
|
|
|
|
|
|
mkdir -p $root/aux
|
|
cp -f $BINARIES_DIR/uboot-env.bin $root/aux/uboot.env
|
|
cp -f $BINARIES_DIR/rootfs.itbh $root/aux/primary.itbh
|
|
cp -f $BINARIES_DIR/rootfs.itbh $root/aux/secondary.itbh
|
|
|
|
rm -rf $tmp
|
|
|
|
genimage \
|
|
--rootpath $root \
|
|
--tmppath $tmp \
|
|
--inputpath $BINARIES_DIR \
|
|
--outputpath $BINARIES_DIR \
|
|
--config $common/genimage.cfg
|