Commit 559c106c2c3cbba97695b19ac84dc501d83ab2da

Authored by Eric Lee
1 parent 94d7cdc8ac

Add 2g industral temp and 4g LPDDR4 machine file

Showing 6 changed files with 228 additions and 54 deletions Inline Diff

conf/machine/smarcimx8m2g.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: EMBEDIAN SMARC-iMX8M COMPUTER ON MODULES with 2GB LPDDR4 MEMORY 2 #@NAME: EMBEDIAN SMARC-iMX8M COMPUTER ON MODULES with 2GB LPDDR4 MEMORY
3 #@SOC: i.MX8MQ 3 #@SOC: i.MX8MQ
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8M 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8M
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx8:mx8mq:" 7 MACHINEOVERRIDES =. "mx8:mx8mq:"
8 MACHINEOVERRIDES =. "imx:" 8 MACHINEOVERRIDES =. "imx:"
9 9
10 require conf/machine/include/arm/arch-arm64.inc 10 require conf/machine/include/arm/arch-arm64.inc
11 require conf/machine/include/imx-base.inc 11 require conf/machine/include/imx-base.inc
12 12
13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee" 13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee"
14 14
15 IMAGE_FEATURES += "package-management" 15 IMAGE_FEATURES += "package-management"
16 16
17 MACHINE_SOCARCH_FILTER_append_mx8mq = "virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d" 17 MACHINE_SOCARCH_FILTER_append_mx8mq = "virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d"
18 18
19 # Embedian BSP default providers 19 # Embedian BSP default providers
20 PREFERRED_PROVIDER_virtual/kernel_smarcimx8m2g ?= "linux-smarcimx8m" 20 PREFERRED_PROVIDER_virtual/kernel_smarcimx8m2g ?= "linux-smarcimx8m"
21 PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.88" 21 PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.51_imx8m"
22 22
23 KERNEL_DEVICETREE = " \ 23 KERNEL_DEVICETREE = " \
24 embedian/fsl-smarcimx8mq.dtb \ 24 embedian/fsl-smarcimx8mq.dtb \
25 embedian/fsl-smarcimx8mq-dcss-lvds.dtb \ 25 embedian/fsl-smarcimx8mq-dcss-lvds.dtb \
26 embedian/fsl-smarcimx8mq-lcdif-lvds.dtb \ 26 embedian/fsl-smarcimx8mq-lcdif-lvds.dtb \
27 embedian/fsl-smarcimx8mq-hdmi.dtb \ 27 embedian/fsl-smarcimx8mq-hdmi.dtb \
28 embedian/fsl-smarcimx8mq-hdmi-4k.dtb \ 28 embedian/fsl-smarcimx8mq-hdmi-4k.dtb \
29 embedian/fsl-smarcimx8mq-dual-display.dtb \ 29 embedian/fsl-smarcimx8mq-dual-display.dtb \
30 " 30 "
31 31
32 IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy" 32 IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy"
33 IMAGE_BOOTFILES += "imx8mq_m4_TCM_hello_world.bin imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin" 33 IMAGE_BOOTFILES += "imx8mq_m4_TCM_hello_world.bin imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin"
34 34
35 PREFERRED_PROVIDER_u-boot_smarcimx8m2g = "u-boot-smarcimx8m" 35 PREFERRED_PROVIDER_u-boot_smarcimx8m2g = "u-boot-smarcimx8m"
36 PREFERRED_PROVIDER_virtual/bootloader_smarcimx8m2g = "u-boot-smarcimx8m" 36 PREFERRED_PROVIDER_virtual/bootloader_smarcimx8m2g = "u-boot-smarcimx8m"
37 37
38 UBOOT_CONFIG ??= "sd" 38 UBOOT_CONFIG ??= "sd"
39 UBOOT_CONFIG[sd] = "smarcimx8mq_2g_ser3_defconfig,sdcard" 39 UBOOT_CONFIG[sd] = "smarcimx8mq_2g_ser3_defconfig,sdcard"
40 SPL_BINARY = "spl/u-boot-spl.bin" 40 SPL_BINARY = "spl/u-boot-spl.bin"
41 41
42 # Set DDR FIRMWARE 42 # Set DDR FIRMWARE
43 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" 43 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"
44 44
45 # Set u-boot DTB 45 # Set u-boot DTB
46 UBOOT_DTB_NAME = "fsl-smarcimx8mq.dtb" 46 UBOOT_DTB_NAME = "fsl-smarcimx8mq.dtb"
47 47
48 # Set imx-mkimage boot target 48 # Set imx-mkimage boot target
49 IMXBOOT_TARGETS = "flash_evk flash_evk_no_hdmi" 49 IMXBOOT_TARGETS = "flash_evk flash_evk_no_hdmi"
50 50
51 SERIAL_CONSOLE = "115200 ttymxc0" 51 SERIAL_CONSOLE = "115200 ttymxc0"
52 52
53 IMAGE_BOOTLOADER = "imx-boot" 53 IMAGE_BOOTLOADER = "imx-boot"
54 54
55 BOOT_SPACE = "65536" 55 BOOT_SPACE = "65536"
56 56
57 LOADADDR = "" 57 LOADADDR = ""
58 UBOOT_SUFFIX = "bin" 58 UBOOT_SUFFIX = "bin"
59 UBOOT_MAKE_TARGET = "" 59 UBOOT_MAKE_TARGET = ""
60 IMX_BOOT_SEEK = "33" 60 IMX_BOOT_SEEK = "33"
61 61
62 OPTEE_BIN_EXT = "8mq" 62 OPTEE_BIN_EXT = "8mq"
63 63
64 MACHINE_EXTRA_RDEPENDS += " \ 64 MACHINE_EXTRA_RDEPENDS += " \
65 pm-utils \ 65 pm-utils \
66 kmod \ 66 kmod \
67 hdparm \ 67 hdparm \
68 gptfdisk \ 68 gptfdisk \
69 lftp \ 69 lftp \
70 vim \ 70 vim \
71 ntp \ 71 ntp \
72 boost \ 72 boost \
73 nodejs \ 73 nodejs \
74 networkmanager \ 74 networkmanager \
75 " 75 "
76 76
77 # Packages added to all images (including core-image-minimal) 77 # Packages added to all images (including core-image-minimal)
78 IMAGE_INSTALL_append = " \ 78 IMAGE_INSTALL_append = " \
79 fsl-rc-local \ 79 fsl-rc-local \
80 " 80 "
81 81
82 IMAGE_FSTYPES = "tar.bz2" 82 IMAGE_FSTYPES = "tar.bz2"
83 83
84 # Ship all kernel modules by default 84 # Ship all kernel modules by default
85 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 85 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
86 86
87 MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k" 87 MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k"
88 88
conf/machine/smarcimx8m2gind.conf
File was created 1 #@TYPE: Machine
2 #@NAME: EMBEDIAN SMARC-iMX8M COMPUTER ON MODULES with 2GB LPDDR4 MEMORY
3 #@SOC: i.MX8MQ
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8M
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6
7 MACHINEOVERRIDES =. "mx8:mx8mq:"
8 MACHINEOVERRIDES =. "imx:"
9
10 require conf/machine/include/arm/arch-arm64.inc
11 require conf/machine/include/imx-base.inc
12
13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee"
14
15 IMAGE_FEATURES += "package-management"
16
17 MACHINE_SOCARCH_FILTER_append_mx8mq = "virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d"
18
19 # Embedian BSP default providers
20 PREFERRED_PROVIDER_virtual/kernel_smarcimx8m2g ?= "linux-smarcimx8m"
21 PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.51_imx8m"
22
23 KERNEL_DEVICETREE = " \
24 embedian/fsl-smarcimx8mq.dtb \
25 embedian/fsl-smarcimx8mq-dcss-lvds.dtb \
26 embedian/fsl-smarcimx8mq-lcdif-lvds.dtb \
27 embedian/fsl-smarcimx8mq-hdmi.dtb \
28 embedian/fsl-smarcimx8mq-hdmi-4k.dtb \
29 embedian/fsl-smarcimx8mq-dual-display.dtb \
30 "
31
32 IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy"
33 IMAGE_BOOTFILES += "imx8mq_m4_TCM_hello_world.bin imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin"
34
35 PREFERRED_PROVIDER_u-boot_smarcimx8m2g = "u-boot-smarcimx8m"
36 PREFERRED_PROVIDER_virtual/bootloader_smarcimx8m2g = "u-boot-smarcimx8m"
37
38 UBOOT_CONFIG ??= "sd"
39 UBOOT_CONFIG[sd] = "smarcimx8mq_2g_ser3_ind_defconfig,sdcard"
40 SPL_BINARY = "spl/u-boot-spl.bin"
41
42 # Set DDR FIRMWARE
43 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"
44
45 # Set u-boot DTB
46 UBOOT_DTB_NAME = "fsl-smarcimx8mq.dtb"
47
48 # Set imx-mkimage boot target
49 IMXBOOT_TARGETS = "flash_evk flash_evk_no_hdmi"
50
51 SERIAL_CONSOLE = "115200 ttymxc0"
52
53 IMAGE_BOOTLOADER = "imx-boot"
54
55 BOOT_SPACE = "65536"
56
57 LOADADDR = ""
58 UBOOT_SUFFIX = "bin"
59 UBOOT_MAKE_TARGET = ""
60 IMX_BOOT_SEEK = "33"
61
62 OPTEE_BIN_EXT = "8mq"
63
64 MACHINE_EXTRA_RDEPENDS += " \
65 pm-utils \
66 kmod \
67 hdparm \
68 gptfdisk \
69 lftp \
70 vim \
71 ntp \
72 boost \
73 nodejs \
74 networkmanager \
75 "
76
77 # Packages added to all images (including core-image-minimal)
78 IMAGE_INSTALL_append = " \
79 fsl-rc-local \
80 "
81
82 IMAGE_FSTYPES = "tar.bz2"
83
84 # Ship all kernel modules by default
85 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
86
87 MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k"
88
conf/machine/smarcimx8m4g.conf
File was created 1 #@TYPE: Machine
2 #@NAME: EMBEDIAN SMARC-iMX8M COMPUTER ON MODULES with 2GB LPDDR4 MEMORY
3 #@SOC: i.MX8MQ
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8M
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6
7 MACHINEOVERRIDES =. "mx8:mx8mq:"
8 MACHINEOVERRIDES =. "imx:"
9
10 require conf/machine/include/arm/arch-arm64.inc
11 require conf/machine/include/imx-base.inc
12
13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee"
14
15 IMAGE_FEATURES += "package-management"
16
17 MACHINE_SOCARCH_FILTER_append_mx8mq = "virtual/libopenvg virtual/libgles1 virtual/libgles2 virtual/egl virtual/mesa virtual/libgl virtual/libg2d"
18
19 # Embedian BSP default providers
20 PREFERRED_PROVIDER_virtual/kernel_smarcimx8m2g ?= "linux-smarcimx8m"
21 PREFERRED_VERSION_linux-smarcimx8m_smarcimx8m2g = "4.9.51_imx8m"
22
23 KERNEL_DEVICETREE = " \
24 embedian/fsl-smarcimx8mq.dtb \
25 embedian/fsl-smarcimx8mq-dcss-lvds.dtb \
26 embedian/fsl-smarcimx8mq-lcdif-lvds.dtb \
27 embedian/fsl-smarcimx8mq-hdmi.dtb \
28 embedian/fsl-smarcimx8mq-hdmi-4k.dtb \
29 embedian/fsl-smarcimx8mq-dual-display.dtb \
30 "
31
32 IMAGE_BOOTFILES_DEPENDS += "imx-m4-demos:do_deploy"
33 IMAGE_BOOTFILES += "imx8mq_m4_TCM_hello_world.bin imx8mq_m4_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin imx8mq_m4_TCM_rpmsg_lite_str_echo_rtos.bin"
34
35 PREFERRED_PROVIDER_u-boot_smarcimx8m2g = "u-boot-smarcimx8m"
36 PREFERRED_PROVIDER_virtual/bootloader_smarcimx8m2g = "u-boot-smarcimx8m"
37
38 UBOOT_CONFIG ??= "sd"
39 UBOOT_CONFIG[sd] = "smarcimx8mq_4g_ser3_defconfig,sdcard"
40 SPL_BINARY = "spl/u-boot-spl.bin"
41
42 # Set DDR FIRMWARE
43 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"
44
45 # Set u-boot DTB
46 UBOOT_DTB_NAME = "fsl-smarcimx8mq.dtb"
47
48 # Set imx-mkimage boot target
49 IMXBOOT_TARGETS = "flash_evk flash_evk_no_hdmi"
50
51 SERIAL_CONSOLE = "115200 ttymxc0"
52
53 IMAGE_BOOTLOADER = "imx-boot"
54
55 BOOT_SPACE = "65536"
56
57 LOADADDR = ""
58 UBOOT_SUFFIX = "bin"
59 UBOOT_MAKE_TARGET = ""
60 IMX_BOOT_SEEK = "33"
61
62 OPTEE_BIN_EXT = "8mq"
63
64 MACHINE_EXTRA_RDEPENDS += " \
65 pm-utils \
66 kmod \
67 hdparm \
68 gptfdisk \
69 lftp \
70 vim \
71 ntp \
72 boost \
73 nodejs \
74 networkmanager \
75 "
76
77 # Packages added to all images (including core-image-minimal)
78 IMAGE_INSTALL_append = " \
79 fsl-rc-local \
80 "
81
82 IMAGE_FSTYPES = "tar.bz2"
83
84 # Ship all kernel modules by default
85 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
86
87 MACHINE_FIRMWARE_append_mx8 = " linux-firmware-ath10k"
88
recipes-bsp/u-boot/u-boot-smarcimx8m_2017.03.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017-2018 NXP 2 # Copyright 2017-2018 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.inc 5 require recipes-bsp/u-boot/u-boot.inc
6 inherit pythonnative 6 inherit pythonnative
7 7
8 PROVIDES += "u-boot" 8 PROVIDES += "u-boot"
9 DEPENDS_append = " python dtc-native" 9 DEPENDS_append = " python dtc-native"
10 10
11 LICENSE = "GPLv2+" 11 LICENSE = "GPLv2+"
12 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263" 12 LIC_FILES_CHKSUM = "file://Licenses/gpl-2.0.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263"
13 13
14 UBOOT_SRC ?= "git://git@git.embedian.com/developer/smarc-t335x-uboot.git;protocol=https" 14 UBOOT_SRC ?= "git://git@git.embedian.com/developer/smarc-t335x-uboot.git;protocol=https"
15 SRCBRANCH = "smarc-imx_v2017.03_4.9.88_2.0.0_ga" 15 SRCBRANCH = "smarc-imx_v2017.03_4.9.88_2.0.0_ga"
16 SRC_URI = "${EMB_UBOOT_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 16 SRC_URI = "${EMB_UBOOT_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
17 SRCREV = "6282b048e3c32fefa7a5dd19b5fa9bcfb85f9265" 17 SRCREV = "27ce391e80f24a67fbe55e41e58fc5c70478e1ef"
18 18
19 S = "${WORKDIR}/git" 19 S = "${WORKDIR}/git"
20 20
21 inherit fsl-u-boot-localversion 21 inherit fsl-u-boot-localversion
22 22
23 LOCALVERSION ?= "-${SRCBRANCH}" 23 LOCALVERSION ?= "-${SRCBRANCH}"
24 24
25 BOOT_TOOLS = "imx-boot-tools" 25 BOOT_TOOLS = "imx-boot-tools"
26 26
27 do_deploy_append_mx8mq () { 27 do_deploy_append_mx8mq () {
28 # Deploy the mkimage, u-boot-nodtb.bin and fsl-smarcimx8mq.dtb for mkimage to generate boot binary 28 # Deploy the mkimage, u-boot-nodtb.bin and fsl-smarcimx8mq.dtb for mkimage to generate boot binary
29 if [ -n "${UBOOT_CONFIG}" ] 29 if [ -n "${UBOOT_CONFIG}" ]
30 then 30 then
31 for config in ${UBOOT_MACHINE}; do 31 for config in ${UBOOT_MACHINE}; do
32 i=$(expr $i + 1); 32 i=$(expr $i + 1);
33 for type in ${UBOOT_CONFIG}; do 33 for type in ${UBOOT_CONFIG}; do
34 j=$(expr $j + 1); 34 j=$(expr $j + 1);
35 if [ $j -eq $i ] 35 if [ $j -eq $i ]
36 then 36 then
37 install -d ${DEPLOYDIR}/${BOOT_TOOLS} 37 install -d ${DEPLOYDIR}/${BOOT_TOOLS}
38 install -m 0777 ${B}/${config}/arch/arm/dts/fsl-smarcimx8mq.dtb ${DEPLOYDIR}/${BOOT_TOOLS} 38 install -m 0777 ${B}/${config}/arch/arm/dts/fsl-smarcimx8mq.dtb ${DEPLOYDIR}/${BOOT_TOOLS}
39 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot 39 install -m 0777 ${B}/${config}/tools/mkimage ${DEPLOYDIR}/${BOOT_TOOLS}/mkimage_uboot
40 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS} 40 install -m 0777 ${B}/${config}/u-boot-nodtb.bin ${DEPLOYDIR}/${BOOT_TOOLS}
41 fi 41 fi
42 done 42 done
43 unset j 43 unset j
44 done 44 done
45 unset i 45 unset i
46 fi 46 fi
47 47
48 } 48 }
49 49
50 PACKAGE_ARCH = "${MACHINE_ARCH}" 50 PACKAGE_ARCH = "${MACHINE_ARCH}"
51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
52 52
53 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 53 UBOOT_NAME_mx6 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
54 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 54 UBOOT_NAME_mx7 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
55 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}" 55 UBOOT_NAME_mx8 = "u-boot-${MACHINE}.bin-${UBOOT_CONFIG}"
56 56
recipes-kernel/linux/linux-smarcimx8m_4.9.51_imx8m.bb
File was created 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017 NXP
3 # Copyright 2018 Embedian, Inc..
4 # Released under the MIT license (see COPYING.MIT for the terms)
5
6 SUMMARY = "Linux Kernel provided and supported by NXP"
7 DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
8 i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
9
10 require recipes-kernel/linux/linux-imx.inc
11 require recipes-kernel/linux/linux-imx-src.inc
12
13 DEPENDS += "lzop-native bc-native"
14
15 DEFAULT_PREFERENCE = "1"
16
17 DO_CONFIG_V7_COPY = "no"
18 DO_CONFIG_V7_COPY_mx6 = "yes"
19 DO_CONFIG_V7_COPY_mx7 = "yes"
20 DO_CONFIG_V7_COPY_mx8 = "no"
21
22 SRCBRANCH = "smarc-imx_4.9.51_imx8m_ga"
23
24 LOCALVERSION = "-${SRCBRANCH}"
25 DEFCONFIG_mx8 = "smarcimx8m_defconfig"
26
27 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
28 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
29 SRCREV = "044022d8da98d6636945dc33ef969f5e096fce1f"
30
31 S = "${WORKDIR}/git"
32
33 addtask copy_defconfig after do_unpack before do_preconfigure
34 do_copy_defconfig () {
35 install -d ${B}
36 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
37 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
38 mkdir -p ${B}
39 cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/.config
40 cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/../defconfig
41 else
42 # copy latest defconfig to use for mx8
43 mkdir -p ${B}
44 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config
45 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig
46 fi
47 }
48
49 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
50 EXTRA_OEMAKE_append_mx6 = " ARCH=arm"
51 EXTRA_OEMAKE_append_mx7 = " ARCH=arm"
52 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"
53
recipes-kernel/linux/linux-smarcimx8m_4.9.88.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor File was deleted
2 # Copyright 2017 NXP
3 # Copyright 2018 Embedian, Inc..
4 # Released under the MIT license (see COPYING.MIT for the terms)
5
6 SUMMARY = "Linux Kernel provided and supported by NXP"
7 DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
8 i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
9
10 require recipes-kernel/linux/linux-imx.inc
11 require recipes-kernel/linux/linux-imx-src.inc
12
13 DEPENDS += "lzop-native bc-native"
14
15 DEFAULT_PREFERENCE = "1"
16
17 DO_CONFIG_V7_COPY = "no"
18 DO_CONFIG_V7_COPY_mx6 = "yes"
19 DO_CONFIG_V7_COPY_mx7 = "yes"
20 DO_CONFIG_V7_COPY_mx8 = "no"
21
22 SRCBRANCH = "smarc-imx_4.9.88_2.0.0_ga"
23
24 LOCALVERSION = "-${SRCBRANCH}"
25 DEFCONFIG_mx8 = "smarcimx8m_defconfig"
26
27 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
28 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
29 SRCREV = "a0f48761d7bb4f790f996f0765cced72c1ff3ee2"
30
31 S = "${WORKDIR}/git"
32
33 addtask copy_defconfig after do_unpack before do_preconfigure
34 do_copy_defconfig () {
35 install -d ${B}
36 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
37 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
38 mkdir -p ${B}
39 cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/.config
40 cp ${S}/arch/arm/configs/imx_v7_defconfig ${B}/../defconfig
41 else
42 # copy latest defconfig to use for mx8
43 mkdir -p ${B}
44 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config
45 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig
46 fi
47 }
48
49 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
50 EXTRA_OEMAKE_append_mx6 = " ARCH=arm"
51 EXTRA_OEMAKE_append_mx7 = " ARCH=arm"
52 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"
53 1 # Copyright (C) 2013-2016 Freescale Semiconductor