diff options
| author | John Toomey <john.toomey@amd.com> | 2023-06-13 13:43:59 +0100 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2023-06-19 09:59:15 -0700 |
| commit | fcadd7d3da7e9e4d02c966d6d992e9d7dba3b9d9 (patch) | |
| tree | 2d3de7d8beb2be26be983f3d0b0d0aac10a23c42 /meta-xilinx-core | |
| parent | f954d5f0f59994ae53446eb98dac8e11d5467787 (diff) | |
| download | meta-xilinx-fcadd7d3da7e9e4d02c966d6d992e9d7dba3b9d9.tar.gz | |
u-boot-xlnx-scr: Add KERNEL_COMMAND_APPEND
Allow appending to the kernel command line in boot.scr
Signed-off-by: John Toomey <john.toomey@amd.com>
Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'meta-xilinx-core')
| -rw-r--r-- | meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb index 187b01d9..b26f23ff 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr.bb | |||
| @@ -172,6 +172,9 @@ KERNEL_ROOT_SD ?= "root=/dev/\${bootdev}${PARTNUM} ro rootwait" | |||
| 172 | # Set Kernel root filesystem parameter for JTAG/QSPI/OSPI/NAND(using RAMDISK) boot | 172 | # Set Kernel root filesystem parameter for JTAG/QSPI/OSPI/NAND(using RAMDISK) boot |
| 173 | KERNEL_ROOT_RAMDISK ?= "root=/dev/ram0 rw" | 173 | KERNEL_ROOT_RAMDISK ?= "root=/dev/ram0 rw" |
| 174 | 174 | ||
| 175 | # Append the kernel command line | ||
| 176 | KERNEL_COMMAND_APPEND ?= "" | ||
| 177 | |||
| 175 | BITSTREAM_LOAD_ADDRESS ?= "0x100000" | 178 | BITSTREAM_LOAD_ADDRESS ?= "0x100000" |
| 176 | 179 | ||
| 177 | do_configure[noexec] = "1" | 180 | do_configure[noexec] = "1" |
| @@ -231,6 +234,7 @@ do_compile() { | |||
| 231 | -e 's/@@PARTNUM@@/${PARTNUM}/' \ | 234 | -e 's/@@PARTNUM@@/${PARTNUM}/' \ |
| 232 | -e 's:@@KERNEL_ROOT_SD@@:${KERNEL_ROOT_SD}:' \ | 235 | -e 's:@@KERNEL_ROOT_SD@@:${KERNEL_ROOT_SD}:' \ |
| 233 | -e 's:@@KERNEL_ROOT_RAMDISK@@:${KERNEL_ROOT_RAMDISK}:' \ | 236 | -e 's:@@KERNEL_ROOT_RAMDISK@@:${KERNEL_ROOT_RAMDISK}:' \ |
| 237 | -e 's:@@KERNEL_COMMAND_APPEND@@:${KERNEL_COMMAND_APPEND}:' \ | ||
| 234 | "${WORKDIR}/boot.cmd.${BOOTMODE}${BOOTFILE_EXT}" > "${WORKDIR}/boot.cmd" | 238 | "${WORKDIR}/boot.cmd.${BOOTMODE}${BOOTFILE_EXT}" > "${WORKDIR}/boot.cmd" |
| 235 | mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr | 239 | mkimage -A arm -T script -C none -n "Boot script" -d "${WORKDIR}/boot.cmd" boot.scr |
| 236 | sed -e 's/@@KERNEL_IMAGETYPE@@/${KERNEL_IMAGETYPE}/' \ | 240 | sed -e 's/@@KERNEL_IMAGETYPE@@/${KERNEL_IMAGETYPE}/' \ |
