From: Josep Orga Date: Thu, 25 Nov 2021 12:15:27 +0000 (+0100) Subject: meta-somdevices: Add PROCESSOR variable to be able to change processor name. X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=46ac090de83b80f35f8e61b726e5d99905a09752;p=meta-somdevices.git meta-somdevices: Add PROCESSOR variable to be able to change processor name. Signed-off-by: Josep Orga --- diff --git a/conf/machine/imx8mmsomdevices.conf b/conf/machine/imx8mmsomdevices.conf index 26de64e..1b48ac0 100644 --- a/conf/machine/imx8mmsomdevices.conf +++ b/conf/machine/imx8mmsomdevices.conf @@ -46,3 +46,5 @@ IMX_BOOT_SEEK = "33" OPTEE_BIN_EXT = "8mm" PACKAGE_CLASSES = "package_deb" + +PROCESSOR = "imx8mm" diff --git a/recipes-bsp/imx-boot/imx-boot_%.bbappend b/recipes-bsp/imx-boot/imx-boot_%.bbappend index 8a9d294..36a2ce5 100644 --- a/recipes-bsp/imx-boot/imx-boot_%.bbappend +++ b/recipes-bsp/imx-boot/imx-boot_%.bbappend @@ -3,5 +3,5 @@ PR = "somdevices.0" MAINTAINER = "SomDevices " compile_mx8m_append () { - ln -sf ${BOOT_STAGING}/${UBOOT_DTB_NAME} ${BOOT_STAGING}/imx8mm-evk.dtb + ln -sf ${BOOT_STAGING}/${UBOOT_DTB_NAME} ${BOOT_STAGING}/${PROCESSOR}-evk.dtb } diff --git a/recipes-kernel/linux/linux-somdevices_5.10.bb b/recipes-kernel/linux/linux-somdevices_5.10.bb index 6702dce..874d553 100644 --- a/recipes-kernel/linux/linux-somdevices_5.10.bb +++ b/recipes-kernel/linux/linux-somdevices_5.10.bb @@ -82,7 +82,7 @@ do_deploy_append() { if [ ! -d ${DEPLOY_DIR_IMAGE} ]; then mkdir -p ${DEPLOY_DIR_IMAGE} fi - cp -fp ${WORKDIR}/deploy-${BPN}/${KERNEL_DEVICETREE_BASENAME}.dtb ${DEPLOY_DIR_IMAGE}/imx8mm-somdevices.dtb + cp -fp ${WORKDIR}/deploy-${BPN}/${KERNEL_DEVICETREE_BASENAME}.dtb ${DEPLOY_DIR_IMAGE}/${PROCESSOR}-somdevices.dtb } KERNEL_VERSION_SANITY_SKIP="1" diff --git a/recipes-somdevices/images/somdevices-minimal.bb b/recipes-somdevices/images/somdevices-minimal.bb index 28bcb57..5dacba2 100644 --- a/recipes-somdevices/images/somdevices-minimal.bb +++ b/recipes-somdevices/images/somdevices-minimal.bb @@ -37,7 +37,7 @@ CORE_IMAGE_EXTRA_INSTALL += " \ " IMAGE_FEATURES += " package-management" -IMAGE_BOOT_FILES += " imx8mm-somdevices.dtb" +IMAGE_BOOT_FILES += " ${PROCESSOR}-somdevices.dtb" inherit extrausers EXTRA_USERS_PARAMS = "usermod -p '\$6\$fA/wBANidw0\$NDNi79WYCcvUYINNKcLboslF.StZj6xyY7D3m0A3Ggf7NSbGtPbWWFoklwr3rcb6VyAvL9JmqWU.NtQDc2jt7/' root"