[Buildroot] [PATCH] Makefile: improve $(TARGET_DIR) (re)creation
Bjørn Forsman
bjorn.forsman at gmail.com
Tue Feb 15 09:17:22 UTC 2011
2011/2/13 Bjørn Forsman <bjorn.forsman at gmail.com>:
> This patch fixes the following use case:
>
> 1. Build, hack, ...
> 2. Oh no, $(TARGET_DIR) is no longer in sync with $(TARGET_SKELETON)
> and/or the packages selected in menuconfig. If only there was a way
> to *easily* rebuild $(TARGET_DIR) so it is in sync...
>
> With this patch, just remove $(TARGET_DIR) and Buildroot will recreate
> it.
>
> Main changes:
> * Always copy $(TARGET_SKELETON). This is the easiest way to ensure
> $(TARGET_DIR) has the latest skeleton.
> * If $(TARGET_DIR) needs to be created (i.e. if the directory is
> missing), remove $(BUILD_DIR)/*/.stamp_target_installed files so
> all currently selected packages will be reinstalled.
I just realized that linux.mk also needs patching for TARGET_DIR
rebuild (to ensure kernel modules are installed). But before I post
that I'd like to get some feedback on this approach...ack/nak?
Best regards,
Bjørn Forsman
More information about the buildroot
mailing list