diff options
| author | Denys Dmytriyenko <denys@ti.com> | 2020-10-13 05:31:18 +0000 |
|---|---|---|
| committer | Dan Murphy <dmurphy@ti.com> | 2020-10-14 20:44:58 -0500 |
| commit | b99786c3ca4b28a06ee4829dcc06eed473305b3b (patch) | |
| tree | 75d6e0613d5b9ebc67757cbe24cefebf5a6829fa | |
| parent | 9cac1a23615f7743a7130f8c6ee5c74d75d60a78 (diff) | |
| download | meta-ti-b99786c3ca4b28a06ee4829dcc06eed473305b3b.tar.gz | |
linux-ti-mainline: add mainline 5.9 using ti-upstream-tools
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
9 files changed, 78 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti-mainline/defconfig b/recipes-kernel/linux/linux-ti-mainline/defconfig new file mode 100644 index 00000000..d083d182 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_omap2_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig b/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig new file mode 100644 index 00000000..dcb53bab --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/dra7xx/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_dra7x_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline/k2g/defconfig b/recipes-kernel/linux/linux-ti-mainline/k2g/defconfig new file mode 100644 index 00000000..316b04bb --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/k2g/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_k2g_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline/k3/defconfig b/recipes-kernel/linux/linux-ti-mainline/k3/defconfig new file mode 100644 index 00000000..b9bc6137 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/k3/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_arm64_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline/keystone/defconfig b/recipes-kernel/linux/linux-ti-mainline/keystone/defconfig new file mode 100644 index 00000000..5a40b93d --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/keystone/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_keystone_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig b/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig new file mode 100644 index 00000000..b3467853 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/omapl138/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_omapl138_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig b/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig new file mode 100644 index 00000000..88f80fa9 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/ti33x/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_am3x_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig b/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig new file mode 100644 index 00000000..4b9daaf9 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline/ti43x/defconfig | |||
| @@ -0,0 +1 @@ | |||
| use-tisdk-config=ti_sdk_am4x_release | |||
diff --git a/recipes-kernel/linux/linux-ti-mainline_git.bb b/recipes-kernel/linux/linux-ti-mainline_git.bb new file mode 100644 index 00000000..6159725a --- /dev/null +++ b/recipes-kernel/linux/linux-ti-mainline_git.bb | |||
| @@ -0,0 +1,70 @@ | |||
| 1 | SECTION = "kernel" | ||
| 2 | SUMMARY = "Mainline Linux kernel for TI devices (with ti-upstream-tools)" | ||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" | ||
| 5 | |||
| 6 | inherit kernel | ||
| 7 | |||
| 8 | DEFCONFIG_BUILDER = "${WORKDIR}/ti-upstream-tools/config/defconfig_builder.sh" | ||
| 9 | require recipes-kernel/linux/setup-defconfig.inc | ||
| 10 | require recipes-kernel/linux/kernel-rdepends.inc | ||
| 11 | |||
| 12 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | ||
| 13 | |||
| 14 | S = "${WORKDIR}/git" | ||
| 15 | |||
| 16 | BRANCH = "master" | ||
| 17 | |||
| 18 | # 5.9 Mainline version | ||
| 19 | SRCREV = "bbf5c979011a099af5dc76498918ed7df445635b" | ||
| 20 | PV = "5.9+git${SRCPV}" | ||
| 21 | |||
| 22 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | ||
| 23 | MACHINE_KERNEL_PR_append = "a" | ||
| 24 | PR = "${MACHINE_KERNEL_PR}" | ||
| 25 | |||
| 26 | KERNEL_GIT_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" | ||
| 27 | KERNEL_GIT_PROTOCOL = "git" | ||
| 28 | SRC_URI += " \ | ||
| 29 | ${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH};name=linux \ | ||
| 30 | git://git.ti.com/ti-linux-kernel/ti-upstream-tools.git;protocol=${KERNEL_GIT_PROTOCOL};name=ti-upstream-tools;destsuffix=ti-upstream-tools \ | ||
| 31 | file://defconfig \ | ||
| 32 | " | ||
| 33 | |||
| 34 | SRCREV_ti-upstream-tools = "3f36f66594d7905f7b97bc7870931173fd2466bd" | ||
| 35 | SRCREV_FORMAT = "linux" | ||
| 36 | |||
| 37 | KERNEL_DEVICETREE = "" | ||
| 38 | |||
| 39 | kernel_do_compile_append() { | ||
| 40 | oe_runmake dtbs CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} | ||
| 41 | oe_runmake -C ${WORKDIR}/ti-upstream-tools LINUX=${S} DTC=${B}/scripts/dtc/dtc O=${B} CC="${KERNEL_CC} $cc_extra " LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} | ||
| 42 | } | ||
| 43 | |||
| 44 | do_install_append() { | ||
| 45 | for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \)`; do | ||
| 46 | dtb="$dtbf" | ||
| 47 | dtb_ext=${dtb##*.} | ||
| 48 | dtb_base_name=`basename $dtb .$dtb_ext` | ||
| 49 | dtb_path=`get_real_dtb_path_in_kernel "$dtb"` | ||
| 50 | install -m 0644 $dtbf ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext | ||
| 51 | done | ||
| 52 | } | ||
| 53 | |||
| 54 | do_deploy_append() { | ||
| 55 | for dtbf in `find arch/${ARCH}/boot/dts/ \( -name '*.dtb' -or -name '*.dtbo' \) -printf '%P\n'`; do | ||
| 56 | dtb="$dtbf" | ||
| 57 | dtb_ext=${dtb##*.} | ||
| 58 | dtb_base_name=`basename $dtb .$dtb_ext` | ||
| 59 | dtb_dir=`dirname $dtb` | ||
| 60 | install -d ${DEPLOYDIR} | ||
| 61 | install -m 0644 ${D}/${KERNEL_IMAGEDEST}/$dtb_base_name.$dtb_ext ${DEPLOYDIR}/$dtb_base_name.$dtb_ext | ||
| 62 | done | ||
| 63 | } | ||
| 64 | |||
| 65 | do_shared_workdir_prepend() { | ||
| 66 | cd ${B} | ||
| 67 | echo >> Module.symvers | ||
| 68 | } | ||
| 69 | |||
| 70 | FILES_${KERNEL_PACKAGE_NAME}-devicetree += "/${KERNEL_IMAGEDEST}/*.itb" | ||
