|
@@ -377,8 +377,6 @@ include system/system.mk
|
|
|
|
|
|
include $(BR2_EXTERNAL)/external.mk
|
|
include $(BR2_EXTERNAL)/external.mk
|
|
|
|
|
|
-TARGETS+=target-finalize
|
|
|
|
-
|
|
|
|
ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
|
|
ifeq ($(BR2_ENABLE_LOCALE_PURGE),y)
|
|
TARGETS+=target-purgelocales
|
|
TARGETS+=target-purgelocales
|
|
endif
|
|
endif
|
|
@@ -395,8 +393,6 @@ endif
|
|
|
|
|
|
include fs/common.mk
|
|
include fs/common.mk
|
|
|
|
|
|
-TARGETS+=target-post-image
|
|
|
|
-
|
|
|
|
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
|
|
TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS) $(BASE_TARGETS))
|
|
TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
|
|
TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
|
|
|
|
|
|
@@ -429,11 +425,16 @@ $(BUILD_DIR)/buildroot-config/auto.conf: $(BR2_CONFIG)
|
|
|
|
|
|
prepare: $(BUILD_DIR)/buildroot-config/auto.conf
|
|
prepare: $(BUILD_DIR)/buildroot-config/auto.conf
|
|
|
|
|
|
-world: $(TARGETS)
|
|
|
|
|
|
+# Add base dependencies to all targets even on those not based on the
|
|
|
|
+# package framework.
|
|
|
|
+$(TARGETS): dirs prepare dependencies
|
|
|
|
+
|
|
|
|
+world: target-post-image
|
|
|
|
|
|
.PHONY: all world toolchain dirs clean distclean source outputmakefile \
|
|
.PHONY: all world toolchain dirs clean distclean source outputmakefile \
|
|
legal-info legal-info-prepare legal-info-clean printvars \
|
|
legal-info legal-info-prepare legal-info-clean printvars \
|
|
- $(BASE_TARGETS) $(TARGETS) \
|
|
|
|
|
|
+ target-finalize target-post-image \
|
|
|
|
+ $(BASE_TARGETS) $(TARGETS) $(TARGETS_ROOTFS) \
|
|
$(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO) \
|
|
$(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) $(TARGETS_LEGAL_INFO) \
|
|
$(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
|
$(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) \
|
|
$(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR)
|
|
$(HOST_DIR) $(BINARIES_DIR) $(STAMP_DIR)
|
|
@@ -493,7 +494,7 @@ endif
|
|
STRIP_FIND_CMD += -type f \( -perm /111 -o -name '*.so*' \)
|
|
STRIP_FIND_CMD += -type f \( -perm /111 -o -name '*.so*' \)
|
|
STRIP_FIND_CMD += -not \( $(call findfileclauses,libpthread*.so* $(call qstrip,$(BR2_STRIP_EXCLUDE_FILES))) \) -print
|
|
STRIP_FIND_CMD += -not \( $(call findfileclauses,libpthread*.so* $(call qstrip,$(BR2_STRIP_EXCLUDE_FILES))) \) -print
|
|
|
|
|
|
-target-finalize:
|
|
|
|
|
|
+target-finalize: $(TARGETS)
|
|
rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/share/aclocal \
|
|
rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/share/aclocal \
|
|
$(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/pkgconfig \
|
|
$(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/pkgconfig \
|
|
$(TARGET_DIR)/usr/lib/cmake $(TARGET_DIR)/usr/share/cmake
|
|
$(TARGET_DIR)/usr/lib/cmake $(TARGET_DIR)/usr/share/cmake
|
|
@@ -520,6 +521,8 @@ endif
|
|
find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \
|
|
find $(TARGET_DIR)/lib/modules -type f -name '*.ko' | \
|
|
xargs -r $(KSTRIPCMD); fi
|
|
xargs -r $(KSTRIPCMD); fi
|
|
|
|
|
|
|
|
+$(TARGETS_ROOTFS): target-finalize
|
|
|
|
+
|
|
# See http://sourceware.org/gdb/wiki/FAQ, "GDB does not see any threads
|
|
# See http://sourceware.org/gdb/wiki/FAQ, "GDB does not see any threads
|
|
# besides the one in which crash occurred; or SIGTRAP kills my program when
|
|
# besides the one in which crash occurred; or SIGTRAP kills my program when
|
|
# I set a breakpoint"
|
|
# I set a breakpoint"
|
|
@@ -598,7 +601,7 @@ target-generatelocales: host-localedef
|
|
done
|
|
done
|
|
endif
|
|
endif
|
|
|
|
|
|
-target-post-image:
|
|
|
|
|
|
+target-post-image: $(TARGETS_ROOTFS)
|
|
@$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_IMAGE_SCRIPT)), \
|
|
@$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_IMAGE_SCRIPT)), \
|
|
$(call MESSAGE,"Executing post-image script $(s)"); \
|
|
$(call MESSAGE,"Executing post-image script $(s)"); \
|
|
$(USER_HOOKS_EXTRA_ENV) $(s) $(BINARIES_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep))
|
|
$(USER_HOOKS_EXTRA_ENV) $(s) $(BINARIES_DIR) $(call qstrip,$(BR2_ROOTFS_POST_SCRIPT_ARGS))$(sep))
|
|
@@ -635,7 +638,7 @@ legal-info: dirs legal-info-clean legal-info-prepare $(TARGETS_LEGAL_INFO) \
|
|
@rm -f $(LEGAL_WARNINGS)
|
|
@rm -f $(LEGAL_WARNINGS)
|
|
|
|
|
|
show-targets:
|
|
show-targets:
|
|
- @echo $(TARGETS)
|
|
|
|
|
|
+ @echo $(TARGETS) $(TARGETS_ROOTFS)
|
|
|
|
|
|
graph-build: $(O)/build/build-time.log
|
|
graph-build: $(O)/build/build-time.log
|
|
@install -d $(O)/graphs
|
|
@install -d $(O)/graphs
|