mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
Add support for the LicheePi 4A with mainline component: - Linux Kernel 6.12 The following components are provided by vendor: - U-Boot 2020.01 - OpenSBI v0.9 Board homepage and more usable wiki: - https://wiki.sipeed.com/hardware/en/lichee/th1520/lpi4a/1_intro.html th1520-boot-firmware is selected from the package sipeed-lpi4abin. This is inspired from lone0's fork of buildroot for th1520.[1] [1] https://github.com/lone0/buildroot-th1520 Signed-off-by: Kanak Shilledar <kanakshilledar@gmail.com> [Julien: Tested on cpu board version 51601 on base board version 51602] Tested-by: Julien Olivain <ju.o@free.fr> [Julien: - add Signed-off-by line in commit log - reorder defconfig entries with "make savedefconfig" - fixed post-image.sh shellcheck warnings (found with "make check-package") - add extra info in readme.txt - change linux-headers.hash to a symlink - change linux.hash comment to take hash from upstream ] Signed-off-by: Julien Olivain <ju.o@free.fr>
25 lines
609 B
Bash
Executable File
25 lines
609 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
BOARD_DIR="$(dirname "$0")"
|
|
GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
|
|
GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
|
|
|
|
trap 'rm -rf "${ROOTPATH_TMP}"' EXIT
|
|
ROOTPATH_TMP="$(mktemp -d)"
|
|
rm -rf "${GENIMAGE_TMP}"
|
|
|
|
cp "${BINARIES_DIR}"/Image "${BINARIES_DIR}"/*.dtb "${BINARIES_DIR}"/fw_dynamic.bin "${ROOTPATH_TMP}"
|
|
cp -a "${BINARIES_DIR}"/bootbins/* "${ROOTPATH_TMP}"
|
|
cp -a "${BOARD_DIR}"/extlinux "${ROOTPATH_TMP}"
|
|
|
|
genimage \
|
|
--rootpath "${ROOTPATH_TMP}" \
|
|
--tmppath "${GENIMAGE_TMP}" \
|
|
--inputpath "${BINARIES_DIR}" \
|
|
--outputpath "${BINARIES_DIR}" \
|
|
--config "${GENIMAGE_CFG}"
|
|
|
|
exit $?
|