Changeset 791


Ignore:
Timestamp:
Sep 9, 2014, 10:09:08 AM (10 years ago)
Author:
cfuguet
Message:

tsar_boot: minor Makefile optimization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r761 r791  
    117117        $(CC) -x c $(INCLUDE) -E $< | $(SED) -e '/#/d' -e '/^[\s\t]*$$/d' > $@
    118118
    119 $(TARGET): $(BUILD_DIR) $(OBJS) $(BUILD_DIR)/preloader.ld $(BUILD_DIR)/platform.ld $(BUILD_DIR)/$(DRV_LIB)
     119$(TARGET): $(BUILD_DIR) $(OBJS) $(BUILD_DIR)/preloader.ld $(BUILD_DIR)/$(DRV_LIB)
    120120        $(ECHO) "[   LD    ]     $@"
    121121        $(LD) -o $@ -T $(BUILD_DIR)/preloader.ld $(OBJS) -L$(BUILD_DIR) -ldrivers
     
    123123
    124124ifeq ($(USE_DT), 1)
    125 $(BUILD_DIR)/platform.ld: $(BUILD_DIR)/platform.dtb
    126         $(ECHO) "[ HEXDUMP ]     $(notdir $<)"
    127         $(HEXDUMP) -v -e '"BYTE(0x" 1/1 "%02X" ")\n"' $< > $@
    128 else
    129 $(BUILD_DIR)/platform.ld:
    130         $(ECHO) "[  TOUCH  ]     $(notdir $@)"
    131         touch $@
    132 endif
     125$(TARGET): $(BUILD_DIR)/platform.ld
    133126
    134127$(BUILD_DIR)/platform.dtb: $(HARD_CONFIG_PATH)/$(DTS)
    135128        $(ECHO) "[   DTC   ]     $(notdir $<)"
    136129        ${DTC} -O dtb -o $@ $< &> /dev/null
     130
     131$(BUILD_DIR)/platform.ld: $(BUILD_DIR)/platform.dtb
     132        $(ECHO) "[ HEXDUMP ]     $(notdir $<)"
     133        $(HEXDUMP) -v -e '"BYTE(0x" 1/1 "%02X" ")\n"' $< > $@
     134endif
    137135
    138136$(BUILD_DIR):
Note: See TracChangeset for help on using the changeset viewer.