Commit 5418ba22e4800f61a851a3c59c2206bfd79d8aae
1 parent
45e0c7eade
Exists in
8mm_4.19.35_1.0.0_warrior
Add Cortex-M4 Support
Showing 4 changed files with 4 additions and 2 deletions Inline Diff
conf/machine/smarcimx8mm2g.conf
1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
2 | #@NAME: EMBEDIAN SMARC-iMX8MM COMPUTER ON MODULES with 2GB LPDDR4 MEMORY | 2 | #@NAME: EMBEDIAN SMARC-iMX8MM COMPUTER ON MODULES with 2GB LPDDR4 MEMORY |
3 | #@SOC: i.MX8M Mini | 3 | #@SOC: i.MX8M Mini |
4 | #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MM | 4 | #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MM |
5 | #@MAINTAINER: Eric Lee <eric.lee@embedian.com> | 5 | #@MAINTAINER: Eric Lee <eric.lee@embedian.com> |
6 | # | 6 | # |
7 | # http://www.www.embedian.com | 7 | # http://www.www.embedian.com |
8 | 8 | ||
9 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:" | 9 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:" |
10 | 10 | ||
11 | require conf/machine/include/imx-base.inc | 11 | require conf/machine/include/imx-base.inc |
12 | require conf/machine/include/arm/arch-arm64.inc | 12 | require conf/machine/include/arm/arch-arm64.inc |
13 | 13 | ||
14 | MACHINE_FEATURES_append_smarcimx8mm2g = " jailhouse" | 14 | MACHINE_FEATURES_append_smarcimx8mm2g = " jailhouse" |
15 | 15 | ||
16 | MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth" | 16 | MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth" |
17 | 17 | ||
18 | IMAGE_FEATURES += "package-management" | 18 | IMAGE_FEATURES += "package-management" |
19 | 19 | ||
20 | # Embedian BSP default providers | 20 | # Embedian BSP default providers |
21 | PREFERRED_PROVIDER_virtual/kernel_smarcimx8mm2g ?= "linux-smarcimx8mm" | 21 | PREFERRED_PROVIDER_virtual/kernel_smarcimx8mm2g ?= "linux-smarcimx8mm" |
22 | PREFERRED_VERSION_linux-smarcimx8mm2g_smarcimx8mm2g = "4.19.35" | 22 | PREFERRED_VERSION_linux-smarcimx8mm2g_smarcimx8mm2g = "4.19.35" |
23 | 23 | ||
24 | KERNEL_DEVICETREE = " \ | 24 | KERNEL_DEVICETREE = " \ |
25 | embedian/fsl-smarcimx8mm.dtb \ | 25 | embedian/fsl-smarcimx8mm.dtb \ |
26 | embedian/fsl-smarcimx8mm-m4.dtb \ | ||
26 | " | 27 | " |
27 | IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy" | 28 | IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy" |
28 | IMAGE_BOOT_FILES += "imx8mm_m4_TCM_hello_world.bin \ | 29 | IMAGE_BOOT_FILES += "imx8mm_m4_TCM_hello_world.bin \ |
29 | imx8mm_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \ | 30 | imx8mm_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \ |
30 | imx8mm_m4_TCM_rpmsg_lite_str_echo_rtos.bin \ | 31 | imx8mm_m4_TCM_rpmsg_lite_str_echo_rtos.bin \ |
31 | imx8mm_m4_TCM_sai_low_power_audio.bin \ | 32 | imx8mm_m4_TCM_sai_low_power_audio.bin \ |
32 | " | 33 | " |
33 | PREFERRED_PROVIDER_u-boot_smarcimx8mm2g = "u-boot-smarcimx8mm" | 34 | PREFERRED_PROVIDER_u-boot_smarcimx8mm2g = "u-boot-smarcimx8mm" |
34 | PREFERRED_PROVIDER_virtual/bootloader_smarcimx8mm2g = "u-boot-smarcimx8mm" | 35 | PREFERRED_PROVIDER_virtual/bootloader_smarcimx8mm2g = "u-boot-smarcimx8mm" |
35 | 36 | ||
36 | UBOOT_CONFIG ??= "sd" | 37 | UBOOT_CONFIG ??= "sd" |
37 | UBOOT_CONFIG[sd] = "smarcimx8mm_2g_ser3_defconfig,sdcard" | 38 | UBOOT_CONFIG[sd] = "smarcimx8mm_2g_ser3_defconfig,sdcard" |
38 | SPL_BINARY = "spl/u-boot-spl.bin" | 39 | SPL_BINARY = "spl/u-boot-spl.bin" |
39 | 40 | ||
40 | # Set DDR FIRMWARE | 41 | # Set DDR FIRMWARE |
41 | DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin" | 42 | DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin" |
42 | 43 | ||
43 | # Set U-Boot DTB | 44 | # Set U-Boot DTB |
44 | UBOOT_DTB_NAME = "fsl-smarcimx8mm.dtb" | 45 | UBOOT_DTB_NAME = "fsl-smarcimx8mm.dtb" |
45 | 46 | ||
46 | # Set imx-mkimage boot target | 47 | # Set imx-mkimage boot target |
47 | IMXBOOT_TARGETS = "flash_evk" | 48 | IMXBOOT_TARGETS = "flash_evk" |
48 | 49 | ||
49 | SERIAL_CONSOLE = "115200 ttymxc1" | 50 | SERIAL_CONSOLE = "115200 ttymxc1" |
50 | 51 | ||
51 | IMAGE_BOOTLOADER = "imx-boot" | 52 | IMAGE_BOOTLOADER = "imx-boot" |
52 | 53 | ||
53 | LOADADDR = "" | 54 | LOADADDR = "" |
54 | UBOOT_MAKE_TARGET = "" | 55 | UBOOT_MAKE_TARGET = "" |
55 | IMX_BOOT_SEEK = "33" | 56 | IMX_BOOT_SEEK = "33" |
56 | 57 | ||
57 | MACHINE_EXTRA_RDEPENDS += " \ | 58 | MACHINE_EXTRA_RDEPENDS += " \ |
58 | imx-boot \ | 59 | imx-boot \ |
59 | packagegroup-tools-bluetooth \ | 60 | packagegroup-tools-bluetooth \ |
60 | pm-utils \ | 61 | pm-utils \ |
61 | kmod \ | 62 | kmod \ |
62 | hdparm \ | 63 | hdparm \ |
63 | gptfdisk \ | 64 | gptfdisk \ |
64 | lftp \ | 65 | lftp \ |
65 | vim \ | 66 | vim \ |
66 | ntp \ | 67 | ntp \ |
67 | boost \ | 68 | boost \ |
68 | nodejs \ | 69 | nodejs \ |
69 | networkmanager \ | 70 | networkmanager \ |
70 | imx-gpu-viv \ | 71 | imx-gpu-viv \ |
71 | " | 72 | " |
72 | 73 | ||
73 | # Packages added to all images (including core-image-minimal) | 74 | # Packages added to all images (including core-image-minimal) |
74 | IMAGE_INSTALL_append = " \ | 75 | IMAGE_INSTALL_append = " \ |
75 | firmware-imx-sdma \ | 76 | firmware-imx-sdma \ |
76 | firmware-imx-epdc \ | 77 | firmware-imx-epdc \ |
77 | fsl-rc-local \ | 78 | fsl-rc-local \ |
78 | android-tools \ | 79 | android-tools \ |
79 | " | 80 | " |
80 | 81 | ||
81 | IMAGE_FSTYPES = "tar.bz2" | 82 | IMAGE_FSTYPES = "tar.bz2" |
82 | 83 | ||
83 | # Ship all kernel modules by default | 84 | # Ship all kernel modules by default |
84 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" | 85 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" |
85 | 86 | ||
86 | MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k" | 87 | MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k" |
87 | 88 |
conf/machine/smarcimx8mm4g.conf
1 | #@TYPE: Machine | 1 | #@TYPE: Machine |
2 | #@NAME: EMBEDIAN SMARC-iMX8MM COMPUTER ON MODULES with 2GB LPDDR4 MEMORY | 2 | #@NAME: EMBEDIAN SMARC-iMX8MM COMPUTER ON MODULES with 2GB LPDDR4 MEMORY |
3 | #@SOC: i.MX8M Mini | 3 | #@SOC: i.MX8M Mini |
4 | #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MM | 4 | #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MM |
5 | #@MAINTAINER: Eric Lee <eric.lee@embedian.com> | 5 | #@MAINTAINER: Eric Lee <eric.lee@embedian.com> |
6 | # | 6 | # |
7 | # http://www.www.embedian.com | 7 | # http://www.www.embedian.com |
8 | 8 | ||
9 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:" | 9 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:" |
10 | 10 | ||
11 | require conf/machine/include/imx-base.inc | 11 | require conf/machine/include/imx-base.inc |
12 | require conf/machine/include/arm/arch-arm64.inc | 12 | require conf/machine/include/arm/arch-arm64.inc |
13 | 13 | ||
14 | MACHINE_FEATURES_append_smarcimx8mm4g = " jailhouse" | 14 | MACHINE_FEATURES_append_smarcimx8mm4g = " jailhouse" |
15 | 15 | ||
16 | MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth" | 16 | MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth" |
17 | 17 | ||
18 | IMAGE_FEATURES += "package-management" | 18 | IMAGE_FEATURES += "package-management" |
19 | 19 | ||
20 | # Embedian BSP default providers | 20 | # Embedian BSP default providers |
21 | PREFERRED_PROVIDER_virtual/kernel_smarcimx8mm4g ?= "linux-smarcimx8mm" | 21 | PREFERRED_PROVIDER_virtual/kernel_smarcimx8mm4g ?= "linux-smarcimx8mm" |
22 | PREFERRED_VERSION_linux-smarcimx8mm4g_smarcimx8mm4g = "4.19.35" | 22 | PREFERRED_VERSION_linux-smarcimx8mm4g_smarcimx8mm4g = "4.19.35" |
23 | 23 | ||
24 | KERNEL_DEVICETREE = " \ | 24 | KERNEL_DEVICETREE = " \ |
25 | embedian/fsl-smarcimx8mm.dtb \ | 25 | embedian/fsl-smarcimx8mm.dtb \ |
26 | embedian/fsl-smarcimx8mm-m4.dtb \ | ||
26 | " | 27 | " |
27 | IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy" | 28 | IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy" |
28 | IMAGE_BOOT_FILES += "imx8mm_m4_TCM_hello_world.bin \ | 29 | IMAGE_BOOT_FILES += "imx8mm_m4_TCM_hello_world.bin \ |
29 | imx8mm_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \ | 30 | imx8mm_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \ |
30 | imx8mm_m4_TCM_rpmsg_lite_str_echo_rtos.bin \ | 31 | imx8mm_m4_TCM_rpmsg_lite_str_echo_rtos.bin \ |
31 | imx8mm_m4_TCM_sai_low_power_audio.bin \ | 32 | imx8mm_m4_TCM_sai_low_power_audio.bin \ |
32 | " | 33 | " |
33 | PREFERRED_PROVIDER_u-boot_smarcimx8mm4g = "u-boot-smarcimx8mm" | 34 | PREFERRED_PROVIDER_u-boot_smarcimx8mm4g = "u-boot-smarcimx8mm" |
34 | PREFERRED_PROVIDER_virtual/bootloader_smarcimx8mm4g = "u-boot-smarcimx8mm" | 35 | PREFERRED_PROVIDER_virtual/bootloader_smarcimx8mm4g = "u-boot-smarcimx8mm" |
35 | 36 | ||
36 | UBOOT_CONFIG ??= "sd" | 37 | UBOOT_CONFIG ??= "sd" |
37 | UBOOT_CONFIG[sd] = "smarcimx8mm_4g_ser3_defconfig,sdcard" | 38 | UBOOT_CONFIG[sd] = "smarcimx8mm_4g_ser3_defconfig,sdcard" |
38 | SPL_BINARY = "spl/u-boot-spl.bin" | 39 | SPL_BINARY = "spl/u-boot-spl.bin" |
39 | 40 | ||
40 | # Set DDR FIRMWARE | 41 | # Set DDR FIRMWARE |
41 | DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin" | 42 | DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_imem.bin lpddr4_pmu_train_1d_dmem.bin lpddr4_pmu_train_2d_imem.bin lpddr4_pmu_train_2d_dmem.bin" |
42 | 43 | ||
43 | # Set U-Boot DTB | 44 | # Set U-Boot DTB |
44 | UBOOT_DTB_NAME = "fsl-smarcimx8mm.dtb" | 45 | UBOOT_DTB_NAME = "fsl-smarcimx8mm.dtb" |
45 | 46 | ||
46 | # Set imx-mkimage boot target | 47 | # Set imx-mkimage boot target |
47 | IMXBOOT_TARGETS = "flash_evk" | 48 | IMXBOOT_TARGETS = "flash_evk" |
48 | 49 | ||
49 | SERIAL_CONSOLE = "115200 ttymxc1" | 50 | SERIAL_CONSOLE = "115200 ttymxc1" |
50 | 51 | ||
51 | IMAGE_BOOTLOADER = "imx-boot" | 52 | IMAGE_BOOTLOADER = "imx-boot" |
52 | 53 | ||
53 | LOADADDR = "" | 54 | LOADADDR = "" |
54 | UBOOT_MAKE_TARGET = "" | 55 | UBOOT_MAKE_TARGET = "" |
55 | IMX_BOOT_SEEK = "33" | 56 | IMX_BOOT_SEEK = "33" |
56 | 57 | ||
57 | MACHINE_EXTRA_RDEPENDS += " \ | 58 | MACHINE_EXTRA_RDEPENDS += " \ |
58 | imx-boot \ | 59 | imx-boot \ |
59 | packagegroup-tools-bluetooth \ | 60 | packagegroup-tools-bluetooth \ |
60 | pm-utils \ | 61 | pm-utils \ |
61 | kmod \ | 62 | kmod \ |
62 | hdparm \ | 63 | hdparm \ |
63 | gptfdisk \ | 64 | gptfdisk \ |
64 | lftp \ | 65 | lftp \ |
65 | vim \ | 66 | vim \ |
66 | ntp \ | 67 | ntp \ |
67 | boost \ | 68 | boost \ |
68 | nodejs \ | 69 | nodejs \ |
69 | networkmanager \ | 70 | networkmanager \ |
70 | imx-gpu-viv \ | 71 | imx-gpu-viv \ |
71 | " | 72 | " |
72 | 73 | ||
73 | # Packages added to all images (including core-image-minimal) | 74 | # Packages added to all images (including core-image-minimal) |
74 | IMAGE_INSTALL_append = " \ | 75 | IMAGE_INSTALL_append = " \ |
75 | firmware-imx-sdma \ | 76 | firmware-imx-sdma \ |
76 | firmware-imx-epdc \ | 77 | firmware-imx-epdc \ |
77 | fsl-rc-local \ | 78 | fsl-rc-local \ |
78 | android-tools \ | 79 | android-tools \ |
79 | " | 80 | " |
80 | 81 | ||
81 | IMAGE_FSTYPES = "tar.bz2" | 82 | IMAGE_FSTYPES = "tar.bz2" |
82 | 83 | ||
83 | # Ship all kernel modules by default | 84 | # Ship all kernel modules by default |
84 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" | 85 | MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" |
85 | 86 | ||
86 | MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k" | 87 | MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k" |
87 | 88 |
recipes-bsp/u-boot/u-boot-smarcimx8mm_2019.04.bb
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | 1 | # Copyright (C) 2013-2016 Freescale Semiconductor |
2 | # Copyright 2017-2019 NXP | 2 | # Copyright 2017-2019 NXP |
3 | 3 | ||
4 | DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards." | 4 | DESCRIPTION = "i.MX U-Boot suppporting i.MX reference boards." |
5 | require recipes-bsp/u-boot/u-boot-common.inc | 5 | require recipes-bsp/u-boot/u-boot-common.inc |
6 | require recipes-bsp/u-boot/u-boot.inc | 6 | require recipes-bsp/u-boot/u-boot.inc |
7 | inherit pythonnative | 7 | inherit pythonnative |
8 | 8 | ||
9 | PROVIDES += "u-boot" | 9 | PROVIDES += "u-boot" |
10 | DEPENDS_append = " python dtc-native" | 10 | DEPENDS_append = " python dtc-native" |
11 | 11 | ||
12 | LICENSE = "GPLv2+" | 12 | LICENSE = "GPLv2+" |
13 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 13 | LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
14 | 14 | ||
15 | UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" | 15 | UBOOT_SRC ?= "${EMB_UBOOT_MIRROR};protocol=ssh" |
16 | SRCBRANCH = "smarc_8mm-imx_v2019.04_4.19.35_1.1.0" | 16 | SRCBRANCH = "smarc_8mm-imx_v2019.04_4.19.35_1.1.0" |
17 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" | 17 | SRC_URI = "${UBOOT_SRC};branch=${SRCBRANCH}" |
18 | SRCREV = "731c0fd70c338cf30512557588398efc6362f560" | 18 | SRCREV = "402b04a84a4ff9c046a78da93bd1da81b686a070" |
19 | 19 | ||
20 | S = "${WORKDIR}/git" | 20 | S = "${WORKDIR}/git" |
21 | 21 | ||
22 | inherit fsl-u-boot-localversion | 22 | inherit fsl-u-boot-localversion |
23 | 23 | ||
24 | LOCALVERSION ?= "-${SRCBRANCH}" | 24 | LOCALVERSION ?= "-${SRCBRANCH}" |
25 | 25 | ||
26 | BOOT_TOOLS = "imx-boot-tools" | 26 | BOOT_TOOLS = "imx-boot-tools" |
27 | 27 | ||
28 | do_deploy_append_mx8m () { | 28 | do_deploy_append_mx8m () { |
29 | # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mm-XX.dtb for mkimage to generate boot binary | 29 | # Deploy the mkimage, u-boot-nodtb.bin and fsl-imx8mm-XX.dtb for mkimage to generate boot binary |
30 | if [ -n "${UBOOT_CONFIG}" ] | 30 | if [ -n "${UBOOT_CONFIG}" ] |
31 | then | 31 | then |
32 | for config in ${UBOOT_MACHINE}; do | 32 | for config in ${UBOOT_MACHINE}; do |
33 | i=$(expr $i + 1); | 33 | i=$(expr $i + 1); |
34 | for type in ${UBOOT_CONFIG}; do | 34 | for type in ${UBOOT_CONFIG}; do |
35 | j=$(expr $j + 1); | 35 | j=$(expr $j + 1); |
36 | if [ $j -eq $i ] | 36 | if [ $j -eq $i ] |
37 | then | 37 | then |
38 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} | 38 | install -d ${DEPLOYDIR}/${BOOT_TOOLS} |
39 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} | 39 | install -m 0777 ${B}/${config}/arch/arm/dts/${UBOOT_DTB_NAME} ${DEPLOYDIR}/${BOOT_TOOLS} |
40 | install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot | 40 | install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot |
41 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} | 41 | install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}/u-boot-nodtb.bin-${MACHINE}-${UBOOT_CONFIG} |
42 | fi | 42 | fi |
43 | done | 43 | done |
44 | unset j | 44 | unset j |
45 | done | 45 | done |
46 | unset i | 46 | unset i |
47 | fi | 47 | fi |
48 | 48 | ||
49 | } | 49 | } |
50 | 50 | ||
51 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 51 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
52 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 52 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
53 | 53 | ||
54 | UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 54 | UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
55 | UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 55 | UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
56 | UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" | 56 | UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" |
57 | 57 |
recipes-kernel/linux/linux-smarcimx8mm_4.19.35.bb
1 | # Copyright (C) 2013-2016 Freescale Semiconductor | 1 | # Copyright (C) 2013-2016 Freescale Semiconductor |
2 | # Copyright 2017 NXP | 2 | # Copyright 2017 NXP |
3 | # Copyright 2018-2019 Embedian, Inc. | 3 | # Copyright 2018-2019 Embedian, Inc. |
4 | # Released under the MIT license (see COPYING.MIT for the terms) | 4 | # Released under the MIT license (see COPYING.MIT for the terms) |
5 | 5 | ||
6 | SUMMARY = "Linux kernel provided and supported by Embedian" | 6 | SUMMARY = "Linux kernel provided and supported by Embedian" |
7 | DESCRIPTION = "Linux kernel provided and supported by Embedian (based on the kernel imx_4.19.35_1.1.0 provided by NXP) \ | 7 | DESCRIPTION = "Linux kernel provided and supported by Embedian (based on the kernel imx_4.19.35_1.1.0 provided by NXP) \ |
8 | with focus on i.MX Family SOMs. It includes support for many IPs such as GPU, VPU and IPU." | 8 | with focus on i.MX Family SOMs. It includes support for many IPs such as GPU, VPU and IPU." |
9 | 9 | ||
10 | require recipes-kernel/linux/linux-imx.inc | 10 | require recipes-kernel/linux/linux-imx.inc |
11 | 11 | ||
12 | LICENSE = "GPLv2" | 12 | LICENSE = "GPLv2" |
13 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | 13 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" |
14 | DEPENDS += "lzop-native bc-native" | 14 | DEPENDS += "lzop-native bc-native" |
15 | 15 | ||
16 | DEFAULT_PREFERENCE = "1" | 16 | DEFAULT_PREFERENCE = "1" |
17 | 17 | ||
18 | SRCBRANCH = "smarc_8mm_imx_4.19.35_1.1.0" | 18 | SRCBRANCH = "smarc_8mm_imx_4.19.35_1.1.0" |
19 | 19 | ||
20 | LOCALVERSION = "-${SRCBRANCH}" | 20 | LOCALVERSION = "-${SRCBRANCH}" |
21 | KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8mm_defconfig" | 21 | KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/smarcimx8mm_defconfig" |
22 | DEFAULT_DTB = "fsl-smarcimx8mm" | 22 | DEFAULT_DTB = "fsl-smarcimx8mm" |
23 | 23 | ||
24 | KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" | 24 | KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" |
25 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" | 25 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" |
26 | SRCREV = "229d119e766994b550b7c08691d3932b54ee162f" | 26 | SRCREV = "9b1539c5d70fdd340ca180584cd03c215177daef" |
27 | 27 | ||
28 | S = "${WORKDIR}/git" | 28 | S = "${WORKDIR}/git" |
29 | 29 | ||
30 | addtask copy_defconfig after do_patch before do_preconfigure | 30 | addtask copy_defconfig after do_patch before do_preconfigure |
31 | do_copy_defconfig () { | 31 | do_copy_defconfig () { |
32 | cp ${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig | 32 | cp ${KERNEL_DEFCONFIG} ${WORKDIR}/defconfig |
33 | } | 33 | } |
34 | 34 | ||
35 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" | 35 | COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" |
36 | EXTRA_OEMAKE_append_mx8 = " ARCH=arm64" | 36 | EXTRA_OEMAKE_append_mx8 = " ARCH=arm64" |
37 | 37 |