Skip to contentSkip to conversation

sitara-linux-ti-staging: Create recipe for Sitara 3.14 kernel tree

PATCH In review Franklin S. Cooper Jr 2 participants 3 messages Jan 14, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sitara-linux-ti-staging: Create recipe for Sitara 3.14 kernel tree

From: "Franklin S. Cooper Jr" <[email protected]>

* The Sitara 3.14 Kernel tree is based on the linux-ti-staging_3.14 recipe and kernel. However, the tree includes additional patches and configs.
* This tree is only meant for AM335x and AM437x

---
 .../linux/sitara-linux-ti-staging-3.14/defconfig   |    1 +
 ...ing_3.14.bb => sitara-linux-ti-staging_3.14.bb} |   23 ++++----------------
 2 files changed, 5 insertions(+), 19 deletions(-)
 create mode 100644 recipes-kernel/linux/sitara-linux-ti-staging-3.14/defconfig
 copy recipes-kernel/linux/{linux-ti-staging_3.14.bb => sitara-linux-ti-staging_3.14.bb} (58%)
recipes-kernel/linux/sitara-linux-ti-staging-3.14/defconfig new file +1 -0
new file mode 100644
index 0000000..98c4069
@@ -0,0 +1 @@
+use-kernel-config=singlecore-omap2plus_defconfig
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -19
similarity index 58%
copy from recipes-kernel/linux/linux-ti-staging_3.14.bb
copy to recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb
index d762be8..f9c4641 100644
@@ -20,46 +20,31 @@ RDEPENDS_kernel-base += "kernel-devicetree"
 RDEPENDS_kernel-base_append_ti33x = " am33x-cm3"
 RDEPENDS_kernel-base_append_ti43x = " am33x-cm3"
 
-# Add a run-time dependency for the VPE VPDMA firmware to be installed
-# on the target file system.
-RDEPENDS_kernel-base_append_dra7xx = " vpe-vpdma-fw"
 
 # Default is to package all dtb files for ti33x devices unless building
 # for the specific beaglebone machine.
 KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb"
 KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb"
 KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb"
-KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb"
-KERNEL_DEVICETREE_dra7xx = "dra7-evm.dtb dra7-evm-lcd7.dtb dra7-evm-lcd10.dtb dra72-evm.dtb dra72-evm-lcd7.dtb dra72-evm-lcd10.dtb am57xx-beagle-x15.dtb"
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb"
-KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb"
-KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb"
-KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
-KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-xm.dtb"
 
 KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3"
+COMPATIBLE_MACHINE = "ti33x|ti43x"
 
 S = "${WORKDIR}/git"
 
-BRANCH = "ti-linux-3.14.y"
+BRANCH = "sitara-ti-linux-3.14.y"
 
-SRCREV = "7828f3b4cb26fa9c978aa96cc46cca8521957f24"
+SRCREV = "2d7148a3a95a2811604611f6c66a8826a61b8b12"
 PV = "3.14.26"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
 MACHINE_KERNEL_PR_append = "f+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
-KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
-
-KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg"
-KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg"
-
 MULTI_CONFIG_BASE_SUFFIX = ""
 
-KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
+KERNEL_GIT_URI = "git://git.ti.com/sitara-linux/sitara-linux.git"
 KERNEL_GIT_PROTOCOL = "git"
 SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
             file://defconfig \
Signature · 1 line
1.7.9.5
#1 lore raw

Franklin,

Isn't it heavy-handed? How many changes on top do you foresee you'd need? Have you considered doing those changes (patches or configs) inside the recipe itself?

Signature · 1 line
Denys
Quoted 87 lines · Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

* The Sitara 3.14 Kernel tree is based on the linux-ti-staging_3.14 recipe and kernel. However, the tree includes additional patches and configs.
* This tree is only meant for AM335x and AM437x

---
 .../linux/sitara-linux-ti-staging-3.14/defconfig   |    1 +
 ...ing_3.14.bb => sitara-linux-ti-staging_3.14.bb} |   23 ++++----------------
 2 files changed, 5 insertions(+), 19 deletions(-)
 create mode 100644 recipes-kernel/linux/sitara-linux-ti-staging-3.14/defconfig
 copy recipes-kernel/linux/{linux-ti-staging_3.14.bb => sitara-linux-ti-staging_3.14.bb} (58%)
recipes-kernel/linux/sitara-linux-ti-staging-3.14/defconfig new file +1 -0
new file mode 100644
index 0000000..98c4069
@@ -0,0 +1 @@
+use-kernel-config=singlecore-omap2plus_defconfig
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +4 -19
similarity index 58%
copy from recipes-kernel/linux/linux-ti-staging_3.14.bb
copy to recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb
index d762be8..f9c4641 100644
@@ -20,46 +20,31 @@ RDEPENDS_kernel-base += "kernel-devicetree"
 RDEPENDS_kernel-base_append_ti33x = " am33x-cm3"
 RDEPENDS_kernel-base_append_ti43x = " am33x-cm3"
 
-# Add a run-time dependency for the VPE VPDMA firmware to be installed
-# on the target file system.
-RDEPENDS_kernel-base_append_dra7xx = " vpe-vpdma-fw"
 
 # Default is to package all dtb files for ti33x devices unless building
 # for the specific beaglebone machine.
 KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb"
 KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb"
 KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb"
-KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb"
-KERNEL_DEVICETREE_dra7xx = "dra7-evm.dtb dra7-evm-lcd7.dtb dra7-evm-lcd10.dtb dra72-evm.dtb dra72-evm-lcd7.dtb dra72-evm-lcd10.dtb am57xx-beagle-x15.dtb"
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb"
-KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb"
-KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb"
-KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
-KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-xm.dtb"
 
 KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3"
+COMPATIBLE_MACHINE = "ti33x|ti43x"
 
 S = "${WORKDIR}/git"
 
-BRANCH = "ti-linux-3.14.y"
+BRANCH = "sitara-ti-linux-3.14.y"
 
-SRCREV = "7828f3b4cb26fa9c978aa96cc46cca8521957f24"
+SRCREV = "2d7148a3a95a2811604611f6c66a8826a61b8b12"
 PV = "3.14.26"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild
 MACHINE_KERNEL_PR_append = "f+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
-KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
-
-KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg"
-KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg"
-
 MULTI_CONFIG_BASE_SUFFIX = ""
 
-KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
+KERNEL_GIT_URI = "git://git.ti.com/sitara-linux/sitara-linux.git"
 KERNEL_GIT_PROTOCOL = "git"
 SRC_URI += "${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRANCH} \
             file://defconfig \
Signature · 7 lines
1.7.9.5

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw
Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Wednesday, January 14, 2015 3:02 PM
To: Cooper Jr., Franklin
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] sitara-linux-ti-staging: Create recipe for Sitara 3.14 kernel tree

Quoted 3 lines

Franklin,

Isn't it heavy-handed?

[Franklin] Yes :(
How many changes on top do you foresee you'd

Quoted 1 line

need?

[Franklin] Very little
Have you considered doing those changes (patches or configs) inside

Quoted 1 line

the recipe itself?

[Franklin] Yes. We want to point customers to a commit with all of our patches and configs. We don't want to give them a list of patches they need to apply themselves. So no matter what we will end up needing a separate git tree.

When the customer downloads the SDK I end up having to tell customers to go to the git tree and manually commit the patches that OE applied and create a branch that only exist on their local setup. They end up being confused since now the git tree inside of the sdk is different than the one they cloned manually.

For AMSDK 7 this was painful when disabling SMP wasn't a part of the git tree and was only an OE patch. It's surprising how many issues that were reported to simply find out that a customer either cloned the kernel git tree manually or used the git tree within the SDK but checked out the tag or commit id we have in our documentation (doesn't include the patches). It even made creating the PRU addon package for SDK 7 complicated due to these out of tree patches.

It is heavy-handed and honestly something I tried extremely hard to avoid but since I was unable to get the patches and config added to the main git tree I was left with no choice.

Quoted 111 lines

--
Denys

Quoted 3 lines · Franklin S. Cooper Jr

From: "Franklin S. Cooper Jr" <[email protected]>

* The Sitara 3.14 Kernel tree is based on the linux-ti-staging_3.14 recipe

and

Quoted 9 lines

kernel. However, the tree includes additional patches and configs.
* This tree is only meant for AM335x and AM437x

---
 .../linux/sitara-linux-ti-staging-3.14/defconfig   |    1 +
 ...ing_3.14.bb => sitara-linux-ti-staging_3.14.bb} |   23 ++++----------------
 2 files changed, 5 insertions(+), 19 deletions(-)
 create mode 100644 recipes-kernel/linux/sitara-linux-ti-staging-

3.14/defconfig

Quoted 1 line
 copy recipes-kernel/linux/{linux-ti-staging_3.14.bb => sitara-linux-ti-

staging_3.14.bb} (58%)

Review

Quoted 2 lines
(quoted diff) +0 -0

b/recipes-kernel/linux/sitara-linux-ti-staging-3.14/defconfig

recipes-

Quoted 7 lines

new file mode 100644
index 0000000..98c4069

recipes-kernel/linux/sitara-linux-ti-staging-3.14/defconfig new file +1 -0
@@ -0,0 +1 @@
+use-kernel-config=singlecore-omap2plus_defconfig
recipes- renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0

kernel/linux/sitara-linux-ti-staging_3.14.bb

Quoted 7 lines

similarity index 58%
copy from recipes-kernel/linux/linux-ti-staging_3.14.bb copy to recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb index d762be8..f9c4641 100644

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree" · line 26

Quoted 10 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -3
@@ -20,46 +20,31 @@ RDEPENDS_kernel-base += "kernel-devicetree"
 RDEPENDS_kernel-base_append_ti33x = " am33x-cm3"
 RDEPENDS_kernel-base_append_ti43x = " am33x-cm3"
 
-# Add a run-time dependency for the VPE VPDMA firmware to be installed
-# on the target file system.
-RDEPENDS_kernel-base_append_dra7xx = " vpe-vpdma-fw"
 
 # Default is to package all dtb files for ti33x devices unless building
 # for the specific beaglebone machine.
 KERNEL_DEVICETREE_ti33x = "am335x-evm.dtb am335x-evmsk.dtb

am335x-bone.dtb am335x-boneblack.dtb"

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree" · line 27

Quoted 1 line
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0
 KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-

hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk- evm.dtb"

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree" · line 28

Quoted 1 line
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -0
 KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-

boneblack.dtb"

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree" · line 33

Quoted 2 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
-KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb"
-KERNEL_DEVICETREE_dra7xx = "dra7-evm.dtb dra7-evm-lcd7.dtb dra7-

evm-lcd10.dtb dra72-evm.dtb dra72-evm-lcd7.dtb dra72-evm-lcd10.dtb am57xx-beagle-x15.dtb"

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree" · line 35

Quoted 2 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -2
-KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb"
-KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb

omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb"

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree"

Quoted 3 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -3
-KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb"
-KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb"
-KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-

xm.dtb"

Quoted 6 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +1 -1
 KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3"
+COMPATIBLE_MACHINE = "ti33x|ti43x"
 

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree"

Quoted 10 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +2 -2
 S = "${WORKDIR}/git"
 
-BRANCH = "ti-linux-3.14.y"
+BRANCH = "sitara-ti-linux-3.14.y"
 
-SRCREV = "7828f3b4cb26fa9c978aa96cc46cca8521957f24"
+SRCREV = "2d7148a3a95a2811604611f6c66a8826a61b8b12"
 PV = "3.14.26"
 
 # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a

rebuild

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree"

Quoted 6 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -3
 MACHINE_KERNEL_PR_append = "f+gitr${SRCPV}"
 PR = "${MACHINE_KERNEL_PR}"
 
-KERNEL_CONFIG_DIR = "${S}/ti_config_fragments"
-
-KERNEL_CONFIG_FRAGMENTS_append_ti33x = "

${KERNEL_CONFIG_DIR}/am33xx_only.cfg"

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree" · line 57

Quoted 1 line
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -1
-KERNEL_CONFIG_FRAGMENTS_append_ti43x = "

${KERNEL_CONFIG_DIR}/am43xx_only.cfg"

recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb RDEPENDS_kernel-base += "kernel-devicetree"

Quoted 7 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +1 -2
-
 MULTI_CONFIG_BASE_SUFFIX = ""
 
-KERNEL_GIT_URI = "git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git"
+KERNEL_GIT_URI = "git://git.ti.com/sitara-linux/sitara-linux.git"
 KERNEL_GIT_PROTOCOL = "git"
 SRC_URI +=

"${KERNEL_GIT_URI};protocol=${KERNEL_GIT_PROTOCOL};branch=${BRAN CH} \

Quoted 9 lines
recipes-kernel/linux/sitara-linux-ti-staging_3.14.bb renamed from recipes-kernel/linux/linux-ti-staging_3.14.bb +0 -1
             file://defconfig \
--

1.7.9.5

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti