makefile: Fixed build on OSX

Signed-off-by: Lyle Cheatham <hello@lylecheatham.com>
This commit is contained in:
LyleCheatham 2019-03-21 17:55:15 -04:00 committed by Kevin O'Connor
parent de7ead1783
commit f7cb0875f4
1 changed files with 4 additions and 2 deletions

View File

@ -72,9 +72,11 @@ $(OUT)board-link: $(KCONFIG_CONFIG)
@echo " Creating symbolic link $(OUT)board" @echo " Creating symbolic link $(OUT)board"
$(Q)mkdir -p $(addprefix $(OUT), $(dirs-y)) $(Q)mkdir -p $(addprefix $(OUT), $(dirs-y))
$(Q)touch $@ $(Q)touch $@
$(Q)ln -Tsf $(PWD)/src/$(CONFIG_BOARD_DIRECTORY) $(OUT)board $(Q)rm -f $(OUT)board
$(Q)ln -sf $(PWD)/src/$(CONFIG_BOARD_DIRECTORY) $(OUT)board
$(Q)mkdir -p $(OUT)board-generic $(Q)mkdir -p $(OUT)board-generic
$(Q)ln -Tsf $(PWD)/src/generic $(OUT)board-generic/board $(Q)rm -f $(OUT)board-generic/board
$(Q)ln -sf $(PWD)/src/generic $(OUT)board-generic/board
$(OUT)%.o.ctr: $(OUT)%.o $(OUT)%.o.ctr: $(OUT)%.o
$(Q)$(OBJCOPY) -j '.compile_time_request' -O binary $^ $@ $(Q)$(OBJCOPY) -j '.compile_time_request' -O binary $^ $@