2022-02-11 15:44:01 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# genimage will need to find the extlinux.conf
|
|
|
|
# in the binaries directory
|
|
|
|
|
2023-06-06 19:54:59 +02:00
|
|
|
CONSOLE="$2"
|
|
|
|
ROOT="$3"
|
2022-02-11 15:44:01 +01:00
|
|
|
|
2022-06-09 16:04:49 +02:00
|
|
|
mkdir -p "${BINARIES_DIR}"
|
|
|
|
cat <<-__HEADER_EOF > "${BINARIES_DIR}/extlinux.conf"
|
2022-06-09 16:04:46 +02:00
|
|
|
label linux
|
|
|
|
kernel /Image
|
|
|
|
devicetree /system.dtb
|
2023-06-06 19:54:59 +02:00
|
|
|
append console="${CONSOLE}" root="/dev/${ROOT}" rw rootwait
|
2022-06-09 16:04:46 +02:00
|
|
|
__HEADER_EOF
|