Add support for shared kernel between IMX machines

BugzID: 75223
This commit is contained in:
Alexandre Bard 2021-10-16 17:24:02 +02:00
parent 723c5db1de
commit 514cd7fd80
3 changed files with 24 additions and 14 deletions

View File

@ -3,7 +3,7 @@
#@DESCRIPTION: Machine configuration for the netmodule HW23, DLM variant
require imx8-nmhw23.conf
KERNEL_DEVICETREE = "netmodule/imx8-nmhw23-dlm.dtb"
KERNEL_DEVICETREE_TO_USE = "${HW23_DLM_DT}"
MACHINEOVERRIDES .= ":imx8-nmhw23"
SOTA_MACHINE = "imx8-nmhw23"

View File

@ -1,30 +1,19 @@
#@TYPE: Machine
#@NAME: NetModule HW 23
#@DESCRIPTION: Machine configuration for the nmhw23 mainboard
require conf/machine/include/imx-base.inc
# Prevent the use of imx mainline BSP
IMX_DEFAULT_BSP = ""
require conf/machine/include/tune-cortexa35.inc
MACHINEOVERRIDES =. "mx8:mx8x:mx8qxp:"
require include/imx8.inc
IMAGE_FSTYPES += "tar.gz cpio cpio.gz.u-boot"
IMAGE_CLASSES += "image_types"
MACHINE_EXTRA_RRECOMMENDS = " kernel-modules kernel-devicetree"
KERNEL_DEFCONFIG = "defconfig"
KERNEL_DEVICETREE = "netmodule/imx8-nmhw23.dtb"
KERNEL_DEVICETREE_TO_USE = "${HW23_DT}"
SOTA_MACHINE = "${MACHINE}"
KERNEL_CLASSES_append = " kernel-fitimage"
KERNEL_IMAGETYPE = "Image"
KERNEL_ALT_IMAGETYPE = "Image"
UBOOT_ENTRYPOINT = "0x80280000"
#UBOOT_MACHINE = "imx8_nmhw23_defconfig"
IMAGE_BOOT_FILES = "flash.bin"

View File

@ -0,0 +1,21 @@
require conf/machine/include/imx-base.inc
require netmodule-hardware.inc
# Prevent the use of imx mainline BSP
IMX_DEFAULT_BSP = ""
# Prevent usage of dynamic-packagearch for the kernel
MACHINE_ARCH_FILTER = ""
require conf/machine/include/tune-cortexa35.inc
MACHINEOVERRIDES =. "mx8:mx8x:mx8qxp:"
KERNEL_IMAGETYPE = "Image"
KERNEL_ALT_IMAGETYPE = "Image"
UBOOT_ENTRYPOINT = "0x80280000"
KERNEL_DEFCONFIG = "imx8-netmodule_defconfig"
HW23_DT = "netmodule/imx8-nmhw23.dtb"
HW23_DLM_DT = "netmodule/imx8-nmhw23-dlm.dtb"
KERNEL_DEVICETREE = "${HW23_DT} ${HW23_DLM_DT}"