Skip to content

Commit

Permalink
android: on prepare, clean all intermediates
Browse files Browse the repository at this point in the history
This was requested to me to prevent no clobbered builds failures
on busybox config changes.

Change-Id: I1bdf2948e0669b1de567381eb809f576e8f1eef5
  • Loading branch information
tpruvot committed Aug 5, 2014
1 parent 1071f3e commit e553d65
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Android.mk
Expand Up @@ -55,6 +55,7 @@ busybox_prepare_full := $(bb_gen)/full/.config
$(busybox_prepare_full): $(BB_PATH)/busybox-full.config
@echo -e ${CL_YLW}"Prepare config for busybox binary"${CL_RST}
@rm -rf $(bb_gen)/full
@rm -rf $(TARGET_OUT_INTERMEDIATES)/EXECUTABLES/busybox_intermediates
@mkdir -p $(@D)
@cat $^ > $@ && echo "CONFIG_CROSS_COMPILER_PREFIX=\"$(BUSYBOX_CROSS_COMPILER_PREFIX)\"" >> $@
make -C $(BB_PATH) prepare O=$(@D) $(BB_PREPARE_FLAGS)
Expand All @@ -63,6 +64,7 @@ busybox_prepare_minimal := $(bb_gen)/minimal/.config
$(busybox_prepare_minimal): $(BB_PATH)/busybox-minimal.config
@echo -e ${CL_YLW}"Prepare config for libbusybox"${CL_RST}
@rm -rf $(bb_gen)/minimal
@rm -rf $(TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libbusybox_intermediates
@mkdir -p $(@D)
@cat $^ > $@ && echo "CONFIG_CROSS_COMPILER_PREFIX=\"$(BUSYBOX_CROSS_COMPILER_PREFIX)\"" >> $@
make -C $(BB_PATH) prepare O=$(@D) $(BB_PREPARE_FLAGS)
Expand Down

0 comments on commit e553d65

Please sign in to comment.