diff --git a/recipes-core/images/netmodule-linux-image.bb b/recipes-core/images/netmodule-linux-image.bb index 3365f79..6d11bbc 100644 --- a/recipes-core/images/netmodule-linux-image.bb +++ b/recipes-core/images/netmodule-linux-image.bb @@ -107,3 +107,22 @@ IMAGE_INSTALL_append_armada-385-nbhw17 = " ${FPGA_INSTALL}" LICENSE = "BSD" +KERNEL_IMAGETYPE_sota = "fitImage" +UBOOT_ENTRYPOINT_sota ?= "0x80008000" + +IMAGE_ROOTFS_SIZE = "2097152" +OSTREE_BOOTLOADER = "u-boot" +# OSTREE_BOOTLOADER ?= "u-boot" + +IMAGE_PREPROCESS_COMMAND_sota += " moveRPMDatabase;" + +IMAGE_BOOT_FILES = "MLO u-boot.img" +# Change the location of /var/lib/rpm to /usr/lib/rpm. +# This makes the rpm package index consistent with installed packages. +# The softlink ln usr/lib/rpm var/lib/rpm -s however isn't created in the .otaimg and has to be created after the installation. +moveRPMDatabase() { + cd ${WORKDIR}/rootfs + mv var/lib/rpm/* usr/lib/rpm + rm -r var/lib/rpm + ln usr/lib/rpm var/lib/rpm -s +}