mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Multiple "vendor" kernels based on the same upstream kernel version
@ 2018-03-07 17:18 Guillermo Rodriguez Garcia
  2018-03-08  7:24 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Guillermo Rodriguez Garcia @ 2018-03-07 17:18 UTC (permalink / raw)
  To: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 712 bytes --]

Hi all,

I want to keep to different "vendor" kernels in my ptxdist BSP, and both
are based on the same upstream kernel version, say 4.1.

How can I keep both of these kernels in the configs/<platform>/.. tree?

I tried just given them different names , e.g.:

configs/platform/kernelconfig-4.1-foo
configs/platform/kernelconfig-4.1-bar
configs/platform/patches/linux-4.1-foo/...
configs/platform/patches/linux-4.1-bar/...

And then select either 4.1-foo or 4.1-bar using ptxdist platformconfig.

However this does not work, as ptxdist will then try to download an
upstream kernel with version "4.1-foo" or "4.1-bar", which obviously fails.

Any hints?

-- 
Guillermo Rodriguez Garcia
guille.rodriguez@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 1083 bytes --]

[-- Attachment #2: Type: text/plain, Size: 91 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] Multiple "vendor" kernels based on the same upstream kernel version
  2018-03-07 17:18 [ptxdist] Multiple "vendor" kernels based on the same upstream kernel version Guillermo Rodriguez Garcia
@ 2018-03-08  7:24 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2018-03-08  7:24 UTC (permalink / raw)
  To: ptxdist

Hi,

On Wed, Mar 07, 2018 at 06:18:39PM +0100, Guillermo Rodriguez Garcia wrote:
> I want to keep to different "vendor" kernels in my ptxdist BSP, and both
> are based on the same upstream kernel version, say 4.1.
> 
> How can I keep both of these kernels in the configs/<platform>/.. tree?
> 
> I tried just given them different names , e.g.:
> 
> configs/platform/kernelconfig-4.1-foo
> configs/platform/kernelconfig-4.1-bar
> configs/platform/patches/linux-4.1-foo/...
> configs/platform/patches/linux-4.1-bar/...
> 
> And then select either 4.1-foo or 4.1-bar using ptxdist platformconfig.
> 
> However this does not work, as ptxdist will then try to download an
> upstream kernel with version "4.1-foo" or "4.1-bar", which obviously fails.
> 
> Any hints?

You could set the version in the platformconfig to 4.1 and use symlinks to
switch:
configs/platform/kernelconfig-4.1 -> kernelconfig-4.1-foo
configs/platform/patches/linux-4.1 -> linux-4.1-foo

You could use the kernel template to build both kernels at the same time.
You'll need to tweak the rules a bit:

KERNEL_FOO		:= linux-$(KERNEL_FOO_VERSION)-foo
KERNEL_FOO_DIR		:= $(BUILDDIR)/$(KERNEL_FOO)
KERNEL_FOO_URL		:= .../linux-$(KERNEL_FOO_VERSION).$(KERNEL_FOO_SUFFIX)
KERNEL_FOO_SOURCE	:= $(SRCDIR)/linux-$(KERNEL_FOO_VERSION).$(KERNEL_FOO_SUFFIX)

You won't be able to use the kernel-url macro, just use a normal URL.
Basically, KERNEL_FOO must contain the '-foo' because the patch dir is
derived from this. And KERNEL_FOO_URL and KERNEL_FOO_SOURCE must point to
the upstream tarball.

Regards,
Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-08  7:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-07 17:18 [ptxdist] Multiple "vendor" kernels based on the same upstream kernel version Guillermo Rodriguez Garcia
2018-03-08  7:24 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox