Changeset 759 for trunk/softs/tsar_boot/Makefile
- Timestamp:
- Jul 24, 2014, 4:38:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/softs/tsar_boot/Makefile
r758 r759 1 # let the user have a default configuration (ie for PLATFORM_DIR)1 # let the user have a default configuration (ie for HARD_CONFIG_PATH) 2 2 -include ./build.mk 3 3 … … 8 8 9 9 ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc)) 10 ifndef PLATFORM_DIR11 $(error please define PLATFORM_DIR 'make PLATFORM_DIR=foo')10 ifndef HARD_CONFIG_PATH 11 $(error please define HARD_CONFIG_PATH 'make HARD_CONFIG_PATH=foo') 12 12 else 13 $(info Make for $( PLATFORM_DIR))13 $(info Make for $(HARD_CONFIG_PATH)) 14 14 endif 15 15 endif … … 26 26 AR := mipsel-unknown-elf-ar 27 27 RM := rm -rf 28 SED := sed 28 29 ECHO := @echo 29 30 MKDIR := mkdir … … 38 39 # ============================================================================= 39 40 40 INCLUDE += -I. -Iinclude -Idrivers -I$( PLATFORM_DIR)41 INCLUDE += -I. -Iinclude -Idrivers -I$(HARD_CONFIG_PATH) 41 42 42 43 # ============================================================================= … … 108 109 ./version.sh > $@ 109 110 110 $(TARGET): $(BUILD_DIR) $(OBJS) $(PLATFORM_DIR)/ldscript $(BUILD_DIR)/platform.ld $(BUILD_DIR)/$(DRV_LIB) 111 $(BUILD_DIR)/preloader.ld: preloader.ld.in 112 $(ECHO) "[ CC ] $(notdir $<)" 113 $(CC) -x c $(INCLUDE) -E $< | $(SED) -e '/#/d' -e '/^[\s\t]*$$/d' > $@ 114 115 $(TARGET): $(BUILD_DIR) $(OBJS) $(BUILD_DIR)/preloader.ld $(BUILD_DIR)/platform.ld $(BUILD_DIR)/$(DRV_LIB) 111 116 $(ECHO) "[ LD ] $@" 112 $(LD) -o $@ -T $( PLATFORM_DIR)/ldscript$(OBJS) -L$(BUILD_DIR) -ldrivers117 $(LD) -o $@ -T $(BUILD_DIR)/preloader.ld $(OBJS) -L$(BUILD_DIR) -ldrivers 113 118 $(DU) -D $@ > $@.txt 114 119 … … 123 128 endif 124 129 125 $(BUILD_DIR)/platform.dtb: $( PLATFORM_DIR)/$(DTS)130 $(BUILD_DIR)/platform.dtb: $(HARD_CONFIG_PATH)/$(DTS) 126 131 $(ECHO) "[ DTC ] $(notdir $<)" 127 132 ${DTC} -O dtb -o $@ $< &> /dev/null
Note: See TracChangeset
for help on using the changeset viewer.