* [Buildroot] Reg: Add a downloaded tar file directly to rootfs
@ 2018-02-12 18:40 ravi chandran
2018-02-12 19:17 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: ravi chandran @ 2018-02-12 18:40 UTC (permalink / raw)
To: buildroot
Hi,
I am having a set of directories and files(actually contain some
add-on packages), which needs to be populated inside /srv directory of
target system. I need a way to download the archived file and put it under
one of the directory of the rootfs. And during the target system
initialization, using init script i will extract the files and populate it
under the /srv directory.
could some please provide some hint, what is the right way to do this
in buildroot?
Thanks..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180213/3bd73634/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Reg: Add a downloaded tar file directly to rootfs
2018-02-12 18:40 [Buildroot] Reg: Add a downloaded tar file directly to rootfs ravi chandran
@ 2018-02-12 19:17 ` Baruch Siach
[not found] ` <CAAMHf5FGV7Mj+suBO7133FNpGGh+tXUKuM4rR1SQM4t2deyVaA@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2018-02-12 19:17 UTC (permalink / raw)
To: buildroot
Hi Ravi,
On Tue, Feb 13, 2018 at 12:10:16AM +0530, ravi chandran wrote:
> I am having a set of directories and files(actually contain some
> add-on packages), which needs to be populated inside /srv directory of
> target system. I need a way to download the archived file and put it under
> one of the directory of the rootfs. And during the target system
> initialization, using init script i will extract the files and populate it
> under the /srv directory.
>
> could some please provide some hint, what is the right way to do this
> in buildroot?
You can use BR2_ROOTFS_OVERLAY or BR2_ROOTFS_POST_BUILD_SCRIPT or a
combination of both. See the detail on these and other local customizations in
chapter 9 "Project-specific customization" of the Buildroot manual:
http://nightly.buildroot.org/manual.html#customize
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Reg: Add a downloaded tar file directly to rootfs
[not found] ` <CAAMHf5FGV7Mj+suBO7133FNpGGh+tXUKuM4rR1SQM4t2deyVaA@mail.gmail.com>
@ 2018-02-13 16:14 ` Baruch Siach
0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2018-02-13 16:14 UTC (permalink / raw)
To: buildroot
Hi Ravi,
Please keep the list on Cc.
On Tue, Feb 13, 2018 at 03:09:16PM +0530, ravi chandran wrote:
> Thanks for your response. By the way it is possible to mention a
> custom repo URL against any config option, so that buildroot can download
> the tar file and copy it inside the BR2_ROOTFS_OVERLAY location .
BR2_ROOTFS_OVERLAY points to a directory tree that is copied over the rootfs.
To fetch a tar file from somewhere you can use BR2_ROOTFS_POST_BUILD_SCRIPT,
and extract it in $TARGET_DIR. See the details in the manual:
http://nightly.buildroot.org/manual.html#rootfs-custom
baruch
> On Tue, Feb 13, 2018 at 12:47 AM, Baruch Siach <baruch@tkos.co.il> wrote:
> >
> > On Tue, Feb 13, 2018 at 12:10:16AM +0530, ravi chandran wrote:
> > > I am having a set of directories and files(actually contain some
> > > add-on packages), which needs to be populated inside /srv directory of
> > > target system. I need a way to download the archived file and put it
> > under
> > > one of the directory of the rootfs. And during the target system
> > > initialization, using init script i will extract the files and populate
> > it
> > > under the /srv directory.
> > >
> > > could some please provide some hint, what is the right way to do
> > this
> > > in buildroot?
> >
> > You can use BR2_ROOTFS_OVERLAY or BR2_ROOTFS_POST_BUILD_SCRIPT or a
> > combination of both. See the detail on these and other local
> > customizations in
> > chapter 9 "Project-specific customization" of the Buildroot manual:
> >
> > http://nightly.buildroot.org/manual.html#customize
> >
> > baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-02-13 16:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 18:40 [Buildroot] Reg: Add a downloaded tar file directly to rootfs ravi chandran
2018-02-12 19:17 ` Baruch Siach
[not found] ` <CAAMHf5FGV7Mj+suBO7133FNpGGh+tXUKuM4rR1SQM4t2deyVaA@mail.gmail.com>
2018-02-13 16:14 ` Baruch Siach
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.