mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
board/microchip/mpfs_icicle: update post-image script
The hss-payload-generator cannot find where u-boot.bin is when looking for it using the config.yaml. Update syntax issues and working directories. Fix the post image script to allow an image to get built. Signed-off-by: Jamie Gibbons <jamie.gibbons@microchip.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
80b5688700
commit
875ab7d9e3
@@ -1,8 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
HSS_PAYLOAD_GENERATOR=${HOST_DIR}/bin/hss-payload-generator
|
set -e
|
||||||
MKIMAGE=${HOST_DIR}/bin/mkimage
|
|
||||||
|
|
||||||
"${HSS_PAYLOAD_GENERATOR}" -c board/microchip/mpfs_icicle/config.yaml "${BINARIES_DIR}"/payload.bin
|
HSS_PAYLOAD_GENERATOR="${HOST_DIR}"/bin/hss-payload-generator
|
||||||
cp board/microchip/mpfs_icicle/mpfs_icicle.its "${BINARIES_DIR}"/mpfs_icicle.its
|
MKIMAGE="${HOST_DIR}"/bin/mkimage
|
||||||
(cd "${BINARIES_DIR}" && "${MKIMAGE}" -f mpfs_icicle.its mpfs_icicle.itb)
|
BOARD_DIR="$(pwd)"/"${0%/*}"
|
||||||
support/scripts/genimage.sh -c board/microchip/mpfs_icicle/genimage.cfg
|
|
||||||
|
pushd "${BINARIES_DIR}"
|
||||||
|
"${HSS_PAYLOAD_GENERATOR}" -c "${BOARD_DIR}"/config.yaml payload.bin
|
||||||
|
cp "${BOARD_DIR}"/mpfs_icicle.its "${BINARIES_DIR}"/mpfs_icicle.its
|
||||||
|
"${MKIMAGE}" -f mpfs_icicle.its mpfs_icicle.itb
|
||||||
|
popd
|
||||||
|
support/scripts/genimage.sh -c "${BOARD_DIR}"/genimage.cfg
|
||||||
|
|||||||
Reference in New Issue
Block a user