mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
kernel-fitimage.bbclass: Allow unset load/entry addresses for ramdisks
Allow the load and entry addresses to remain unset if the UBOOT_RD_* variables are also unset for ramdisk entries in the image tree. This allows for U-Boot to decide dynamically where to load the ramdisk. (From OE-Core rev: 941b6ce3b297ed83f1c05dd76bfeefbf93482e6f) Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
28ef841440
commit
492ee05c65
@@ -178,6 +178,15 @@ EOF
|
||||
fitimage_emit_section_ramdisk() {
|
||||
|
||||
ramdisk_csum="sha1"
|
||||
ramdisk_loadline=""
|
||||
ramdisk_entryline=""
|
||||
|
||||
if [ -n "${UBOOT_RD_LOADADDRESS}" ]; then
|
||||
ramdisk_loadline="load = <${UBOOT_RD_LOADADDRESS}>;"
|
||||
fi
|
||||
if [ -n "${UBOOT_RD_ENTRYPOINT}" ]; then
|
||||
ramdisk_entryline="entry = <${UBOOT_RD_ENTRYPOINT}>;"
|
||||
fi
|
||||
|
||||
cat << EOF >> ${1}
|
||||
ramdisk@${2} {
|
||||
@@ -187,8 +196,8 @@ fitimage_emit_section_ramdisk() {
|
||||
arch = "${UBOOT_ARCH}";
|
||||
os = "linux";
|
||||
compression = "none";
|
||||
load = <${UBOOT_RD_LOADADDRESS}>;
|
||||
entry = <${UBOOT_RD_ENTRYPOINT}>;
|
||||
${ramdisk_loadline}
|
||||
${ramdisk_entryline}
|
||||
hash@1 {
|
||||
algo = "${ramdisk_csum}";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user