[Buildroot] Prebuilt concept

Tzu-Jung Lee roylee17 at gmail.com
Wed Aug 8 12:20:51 UTC 2012


On Wed, Aug 8, 2012 at 1:42 AM, Matthew Weber <matt at thewebers.ws> wrote:
> Here's what worked for me (taken from my Makefile).  I have only tested this
> with an external toolchain, so I'm guessing there will be some additional
> stamp files that need tweaking.
>
> refresh_target:
>         @echo "Cleaning up target install..."
>         @rm -f $(BUILD_DIR)/.root       #Causes target dir to recreate
>         @rm -rf $(TARGET_DIR)
>         @find $(BUILD_DIR)/* -name "*target_installed" -type f -exec rm -f
> {} \;        # Causes pkg to reinstall target dir
>         @find $(BUILD_DIR)/* -name ".installed" -type f -exec rm -f {} \;
> # Causes grub to reinstall target dir
>         @find $(BUILD_DIR)/* -name ".stamp_installed" -type f -exec rm -f {}
> \; # Causes kernel to reinstall target dir
>         @rm -rf $(STAMP_DIR)/ext-toolchain-
> installed                            # Causes toolchain to recopy libs to
> target dir
>         @make
> # Command Re-install of target dir
>         @echo "Rebuilding target install..."
>
>
> Thanks,
> Matt

I did things like this several times manually, and is also asked from
time to time.

It would be very handy if the future releases could officially include
similar make targets.

Thanks,
Roy



More information about the buildroot mailing list