Commit e3bed1df711407a1354a59a6206cba5596192c49

Authored by Eric Lee
1 parent 0f3aa13b19
Exists in master

Add Kernel Network Namespace Support

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

recipes-kernel/linux/linux-smarcfimx7_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 2018 Embedian, Inc.. 3 # Copyright 2018 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-FiMX7 and supported by Embedian" 6 SUMMARY = "Linux Kernel for SMARC-FiMX7 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-FiMX7 Family Computer on Modules." 8 SMARC-FiMX7 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-imx7_4.9.88_2.0.0_ga" 24 SRCBRANCH = "smarc-imx7_4.9.88_2.0.0_ga"
25 25
26 LOCALVERSION = "-${SRCBRANCH}" 26 LOCALVERSION = "-${SRCBRANCH}"
27 DEFCONFIG_mx7 = "smarcfimx7_defconfig" 27 DEFCONFIG_mx7 = "smarcfimx7_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 = "f5922409377902ad04a4bb7d49dccee2e7168169" 31 SRCREV = "e1a2ce3a2043a9e74dd1df5555bc970cb800bd81"
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_mx7} ${B}/.config 41 cp ${S}/arch/arm/configs/${DEFCONFIG_mx7} ${B}/.config
42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx7} ${B}/../defconfig 42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx7} ${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