Skip to contentSkip to conversation

Using a local kernel tarball?

Buildroot Bill Borton 2 participants 5 messages Jan 13, 2015 – Jan 16, 2015

lore
Share & tools
lore
#0 lore raw

Hi guys,

It would appear I can use a local directory, repository or a custom tarball URL... but not a local tarball?

If my kernel src is in say buildroot/boards/company/product/kernel.tar.bz how do I tell Buildroot to use it?

I'm betting I've missed something obvious...

Thanks for your time,
-Bill

#1 lore raw

Hi Bill,

Quoted 10 lines · Bill Borton

Hi guys,

It would appear I can use a local directory, repository or a custom tarball URL... but not a local tarball?

If my kernel src is in say buildroot/boards/company/product/kernel.tar.bz how do I tell Buildroot to use it?

I'm betting I've missed something obvious...

Use file:// as URL prefix to point to a local file...

Best regards,
Thomas

#2 lore raw

Thank you sir.

That was actually one of the first things I tried:
"file://board/company/product/kernel.tar.bz" which doesn't work. I also tried ../ and ../../

With your suggestion I went back and tried again:
"file://../../../board/company/product/kernel.tar.bz" Does the trick...

I knew there must be a simple solution.

Thanks again,
-Bill

Quoted 18 lines · On Wed, 14 Jan 2015 22:15:02 +0100 Thomas De Schampheleire…

Hi Bill,

Quoted 10 lines · Bill Borton

Hi guys,

It would appear I can use a local directory, repository or a custom tarball URL... but not a local tarball?

If my kernel src is in say buildroot/boards/company/product/kernel.tar.bz how do I tell Buildroot to use it?

I'm betting I've missed something obvious...

Use file:// as URL prefix to point to a local file...

Best regards,
Thomas

#3 lore raw

Hi Bill,

Quoted 11 lines · Bill Borton

Thank you sir.

That was actually one of the first things I tried:
"file://board/company/product/kernel.tar.bz" which doesn't work. I also tried ../ and ../../

With your suggestion I went back and tried again:
"file://../../../board/company/product/kernel.tar.bz" Does the trick...

I knew there must be a simple solution.

You can do away with the relative paths using a make variable like TOPDIR:

BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="file://$(TOPDIR)/board/company/product/kernel.tar.bz"

Best regards,
Thomas

#4 lore raw

Even better! Thank you again.

-Bill

Quoted 21 lines · On Fri, 16 Jan 2015 08:57:51 +0100 Thomas De Schampheleire…

Hi Bill,

Quoted 11 lines · Bill Borton

Thank you sir.

That was actually one of the first things I tried:
"file://board/company/product/kernel.tar.bz" which doesn't work. I also tried ../ and ../../

With your suggestion I went back and tried again:
"file://../../../board/company/product/kernel.tar.bz" Does the trick...

I knew there must be a simple solution.

You can do away with the relative paths using a make variable like TOPDIR:

BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="file://$(TOPDIR)/board/company/product/kernel.tar.bz"

Best regards,
Thomas