[Buildroot] [PATCH] Avoid make distclean to remove packages fromrootfs
Roberto A. Foglietta
roberto.foglietta at gmail.com
Tue Oct 28 06:47:01 UTC 2008
2008/10/28 Hamish Moffatt <hamish at cloud.net.au>:
> On Mon, Oct 27, 2008 at 10:11:12PM +0100, Roberto A. Foglietta wrote:
>> clean remove a lot of things not only the stamps
>>
>> clean: $(TARGETS_CLEAN)
>> rm -rf $(STAGING_DIR) $(TARGET_DIR) $(IMAGE)
>> $(PROJECT_BUILD_DIR)/.root $(PROJECT_BUILD_DIR)/autotools-stamps
>>
>> a) you want reinstall things in root because they have been corrupted
>> without loosing your customization on scripts/configurations:
>
> You shouldn't edit anything in $(TARGET_DIR) yourself - edit the
> source, then rebuild.
Yes and no.
Yes you are right once I know what I want to do on the source.
No, you are not right if I have to play with rootfs until I decide.
>
> However, there does need to be a way to copy the target_skeleton over
> the root directory again in case you've edited files (startup scripts,
> passwd file, fstab etc). And you might not want to copy this over an
> existing $(TARGET_DIR), because then you might lose changes made
> by packages.
>
> I didn't understand your softclean and rootclean targets though. Here's
> what I have added to my own tree:
>
my 'softclean' is an internal target in order to do 'install' target.
> root-clean:
> rm -rf $(PROJECT_BUILD_DIR)/.root $(PROJECT_BUILD_DIR)/autotools-stamps $(TARGET_DIR)
>
>
ok, so it seems to me that: install and rootclean could be two
acceptable targets to add.
here you are a newer version of the patch
+ @echo ' rootclean - delete all rootfs content
+ @echo ' install - (re)install rootfs but not skeleton if it exists'
Cheers,
--
/roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile-r23778.patch3
Type: application/octet-stream
Size: 2568 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/buildroot/attachments/20081028/4492baf1/attachment-0002.obj
More information about the buildroot
mailing list