Skip to contentSkip to conversation

creating skeleton during build

Buildroot John Smith 3 participants 3 messages Apr 19, 2011

lore
Share & tools
lore

John Smith

author
#0 lore raw

Hi Guys,
I am using the old gcc3_legacy to build compatible firmwares for an old router.
(I can't use a later one as I am pinned down by closed source binaries.)
Rather than having a fixed root skeleton, I am unpacking an original firmware.
In order to invoke the unpack I have the following line in custom.mk (with all my other custom bits) in my board directory:-
$(TARGET_DIR): $(TARGET_SKELETON)
All goes well until I do a second build, the system tries to re-make the root skeleton even though it already exists and is older than $(TARGET_DIR) so I have to comment out the above line for the second build. Any way to avoid this? -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20110419/89140754/attachment.html>

#1 lore raw

[cut]

Quoted 1 line

build. Any way to avoid this?

Maybe try to make fresh build and let BR populate it's own skeleton. After that overwrite 'target' directory with your skeleton. AFAIK BR doesn't bother to validate 'target' dir after first build. At least until 2011-03-31 snapshot.

Signature · 4 lines
Patryk "LeadMan" Benderz
Linux Registered User #377521
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments
#2 lore raw
In reply to John Smith

2011/4/19 John Smith <[email protected]>

Quoted 1 line

All goes well until I do a second build, the system tries to re-make the root skeleton even though it already exists and is older than $(TARGET_DIR) so I have to comment out the above line for the second build. Any way to avoid this?

To just prevent the skeleton to be copied, try "touch output/build/.root".