Commit 67828e5cc680844fcdf6407df68a08ffabf3e415

Authored by Eric Lee
1 parent 77f5c303db
Exists in master

Add support for external watchdog linux kernel driver on module

Showing 1 changed file with 1 additions and 1 deletions Inline Diff

recipes-kernel/linux/linux-smarcfimx6_4.9.88.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 2019 Embedian, Inc.. 3 # Copyright 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 for SMARC-FiMX6 and supported by Embedian" 6 SUMMARY = "Linux Kernel for SMARC-FiMX6 and supported by Embedian"
7 DESCRIPTION = "Linux Kernel provided and supported by Embedian with focus on \ 7 DESCRIPTION = "Linux Kernel provided and supported by Embedian with focus on \
8 SMARC-FiMX6 Family Computer on Modules." 8 SMARC-FiMX6 Family Computer on Modules."
9 9
10 LICENSE = "GPLv2" 10 LICENSE = "GPLv2"
11 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 11 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
12 12
13 require recipes-kernel/linux/linux-imx.inc 13 require recipes-kernel/linux/linux-imx.inc
14 14
15 DEPENDS += "lzop-native bc-native" 15 DEPENDS += "lzop-native bc-native"
16 16
17 DEFAULT_PREFERENCE = "1" 17 DEFAULT_PREFERENCE = "1"
18 18
19 DO_CONFIG_V7_COPY = "no" 19 DO_CONFIG_V7_COPY = "no"
20 DO_CONFIG_V7_COPY_mx6 = "yes" 20 DO_CONFIG_V7_COPY_mx6 = "yes"
21 DO_CONFIG_V7_COPY_mx7 = "yes" 21 DO_CONFIG_V7_COPY_mx7 = "yes"
22 DO_CONFIG_V7_COPY_mx8 = "no" 22 DO_CONFIG_V7_COPY_mx8 = "no"
23 23
24 SRCBRANCH = "smarc-imx6_4.9.88_2.0.0_ga" 24 SRCBRANCH = "smarc-imx6_4.9.88_2.0.0_ga"
25 25
26 LOCALVERSION = "-${SRCBRANCH}" 26 LOCALVERSION = "-${SRCBRANCH}"
27 DEFCONFIG_mx6 = "smarcfimx6_defconfig" 27 DEFCONFIG_mx6 = "smarcfimx6_defconfig"
28 28
29 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" 29 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
30 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 30 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
31 SRCREV = "4b3fe740490221fc48c7f424a1e2e213b4874727" 31 SRCREV = "9c985dee5559ac7c54c590445fa2044678dba21f"
32 32
33 S = "${WORKDIR}/git" 33 S = "${WORKDIR}/git"
34 34
35 addtask copy_defconfig after do_unpack before do_preconfigure 35 addtask copy_defconfig after do_unpack before do_preconfigure
36 do_copy_defconfig () { 36 do_copy_defconfig () {
37 install -d ${B} 37 install -d ${B}
38 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then 38 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
39 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7 39 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
40 mkdir -p ${B} 40 mkdir -p ${B}
41 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/.config 41 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/.config
42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/../defconfig 42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/../defconfig
43 else 43 else
44 # copy latest defconfig to use for mx8 44 # copy latest defconfig to use for mx8
45 mkdir -p ${B} 45 mkdir -p ${B}
46 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config 46 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config
47 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig 47 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig
48 fi 48 fi
49 } 49 }
50 50
51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
52 EXTRA_OEMAKE_append_mx6 = " ARCH=arm" 52 EXTRA_OEMAKE_append_mx6 = " ARCH=arm"
53 EXTRA_OEMAKE_append_mx7 = " ARCH=arm" 53 EXTRA_OEMAKE_append_mx7 = " ARCH=arm"
54 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64" 54 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"
55 55