diff --git a/bsp/buildroot/Makefile b/bsp/buildroot/Makefile index 0308f9b5..67f4b980 100644 --- a/bsp/buildroot/Makefile +++ b/bsp/buildroot/Makefile @@ -543,11 +543,14 @@ $(BUILD_DIR)/buildroot-config/auto.conf: $(BR2_CONFIG) prepare: $(BUILD_DIR)/buildroot-config/auto.conf +rebuild: $(foreach pkg,$(PACKAGES),$(pkg)-clean-for-rebuild) world + world: target-post-image .PHONY: all world toolchain dirs clean distclean source outputmakefile \ legal-info legal-info-prepare legal-info-clean printvars help \ - list-defconfigs target-finalize target-post-image source-check + list-defconfigs target-finalize target-post-image source-check \ + rebuild # Populating the staging with the base directories is handled by the skeleton package $(STAGING_DIR): diff --git a/bsp/buildroot/package/pkg-generic.mk b/bsp/buildroot/package/pkg-generic.mk index e8a8021e..6339a1af 100644 --- a/bsp/buildroot/package/pkg-generic.mk +++ b/bsp/buildroot/package/pkg-generic.mk @@ -765,6 +765,8 @@ $(1)-rebuild: $(1)-clean-for-rebuild $(1) $(1)-clean-for-reconfigure: $(1)-clean-for-rebuild rm -f $$($(2)_TARGET_CONFIGURE) +$(1)-rebuild-depends: $$(foreach p,$$($(2)_FINAL_DEPENDENCIES),$$(p)-clean-for-rebuild) $(1)-rebuild + $(1)-reconfigure: $(1)-clean-for-reconfigure $(1) # define the PKG variable for all targets, containing the