* [Buildroot] Chances in skeleton don't appear in filesystem
@ 2012-12-04 2:16 Woody Wu
2012-12-04 4:44 ` Woody Wu
2012-12-04 9:03 ` Thomas Petazzoni
0 siblings, 2 replies; 5+ messages in thread
From: Woody Wu @ 2012-12-04 2:16 UTC (permalink / raw)
To: buildroot
Hi, list
After some intial builds, I come up with idea to make chances in the
default filesystem contents. Then I change the config to use customized
filesystem skeleton (fs/skeleton) and changed the
fs/skeleton/network/interfaces with expection that change could appear
in the generated target file system. After another run of make,
however, I did not see my chances by untar the rootfs.tar.bz2. Then I
tried to remove the output/target directory, this time I even got
another error, 'output/target/etc/hosts: no such file or directory'.
What's the correct method to modify the defualt filesystem? Thanks.
--
woody
I can't go back to yesterday - because I was a different person then.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Chances in skeleton don't appear in filesystem
2012-12-04 2:16 [Buildroot] Chances in skeleton don't appear in filesystem Woody Wu
@ 2012-12-04 4:44 ` Woody Wu
2012-12-04 9:03 ` Thomas Petazzoni
1 sibling, 0 replies; 5+ messages in thread
From: Woody Wu @ 2012-12-04 4:44 UTC (permalink / raw)
To: buildroot
On 2012-12-04, Woody Wu
<narkewoody@gmail.com> wrote:
> Hi, list
>
> After some intial builds, I come up with idea to make chances in the
> default filesystem contents. Then I change the config to use customized
> filesystem skeleton (fs/skeleton) and changed the
> fs/skeleton/network/interfaces with expection that change could appear
> in the generated target file system. After another run of make,
> however, I did not see my chances by untar the rootfs.tar.bz2. Then I
> tried to remove the output/target directory, this time I even got
> another error, 'output/target/etc/hosts: no such file or directory'.
>
> What's the correct method to modify the defualt filesystem? Thanks.
>
Sorry for typo. 'Chance' -> 'Change'
--
woody
I can't go back to yesterday - because I was a different person then.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Chances in skeleton don't appear in filesystem
2012-12-04 2:16 [Buildroot] Chances in skeleton don't appear in filesystem Woody Wu
2012-12-04 4:44 ` Woody Wu
@ 2012-12-04 9:03 ` Thomas Petazzoni
2012-12-04 23:29 ` Peter Korsgaard
1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2012-12-04 9:03 UTC (permalink / raw)
To: buildroot
Dear Woody Wu,
On Tue, 4 Dec 2012 02:16:11 +0000 (UTC), Woody Wu wrote:
> After some intial builds, I come up with idea to make chances in the
> default filesystem contents. Then I change the config to use customized
> filesystem skeleton (fs/skeleton) and changed the
> fs/skeleton/network/interfaces with expection that change could appear
> in the generated target file system. After another run of make,
> however, I did not see my chances by untar the rootfs.tar.bz2.
The skeleton is copied to output/target during the first make, and is
not copied again during subsequent invocations of make. If you want to
see your filesystem skeleton changes to be taken into account, you have
to do a "make clean; make" cycle.
> Then I
> tried to remove the output/target directory, this time I even got
> another error, 'output/target/etc/hosts: no such file or directory'.
Removing the output/target directory does not make sense and cannot
work. Buildroot does not know that it has been removed and therefore
does not retrigger the installation of all packages.
> What's the correct method to modify the defualt filesystem? Thanks.
Do use a custom skeleton, use a custom post-build script to copy/modify
files in output/target. See
http://elinux.org/images/2/2a/Using-buildroot-real-project.pdf starting
slide 22, and particularly slides 24 and 25.
Best regards,
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Chances in skeleton don't appear in filesystem
2012-12-04 9:03 ` Thomas Petazzoni
@ 2012-12-04 23:29 ` Peter Korsgaard
2012-12-12 16:26 ` Woody Wu
0 siblings, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2012-12-04 23:29 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>> What's the correct method to modify the defualt filesystem? Thanks.
Thomas> Do use a custom skeleton, use a custom post-build script to copy/modify
Thomas> files in output/target. See
s/Do use/Do NOT use/
Alternatively, if you do use a custom rootfs skeleton and want the
skeleton changes to be taken into consideration without doing a clean
rebuild you can manually make the changes under output/target as well
and rerun make.
Using a post-build script is easier though.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Chances in skeleton don't appear in filesystem
2012-12-04 23:29 ` Peter Korsgaard
@ 2012-12-12 16:26 ` Woody Wu
0 siblings, 0 replies; 5+ messages in thread
From: Woody Wu @ 2012-12-12 16:26 UTC (permalink / raw)
To: buildroot
On 2012-12-04, Peter Korsgaard
<jacmet@uclibc.org> wrote:
>>>>>> "Thomas" == Thomas Petazzoni
>>>>>> <thomas.petazzoni@free-electrons.com>
>>>>>> writes:
>
> >> What's the correct method to modify the defualt filesystem? Thanks.
>
> Thomas> Do use a custom skeleton, use a custom post-build script to
> copy/modify Thomas> files in output/target. See
>
> s/Do use/Do NOT use/
>
> Alternatively, if you do use a custom rootfs skeleton and want the
> skeleton changes to be taken into consideration without doing a clean
> rebuild you can manually make the changes under output/target as well
> and rerun make.
>
> Using a post-build script is easier though.
>
Thanks both. By far, the post script method works fine for me.
--
woody
I can't go back to yesterday - because I was a different person then.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-12-12 16:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04 2:16 [Buildroot] Chances in skeleton don't appear in filesystem Woody Wu
2012-12-04 4:44 ` Woody Wu
2012-12-04 9:03 ` Thomas Petazzoni
2012-12-04 23:29 ` Peter Korsgaard
2012-12-12 16:26 ` Woody Wu
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.