src/mainboard/{cavium,sifive}: Use $(obj) instead of build

The build directory might not exist in the src dir.

BUG=b:112267918
TEST=make what-jenkins-does

Change-Id: I2d4fa6cc455592f92070796cd065cd66646d5ba9
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/34552
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Raul E Rangel 2019-07-23 16:58:53 -06:00 committed by Patrick Georgi
parent 693c55c545
commit 135bc3652e
2 changed files with 4 additions and 4 deletions

View File

@ -29,10 +29,10 @@ verstage-y += memlayout.ld
MB_DIR = src/mainboard/$(MAINBOARDDIR) MB_DIR = src/mainboard/$(MAINBOARDDIR)
LINUX_DTB = sff8104-linux.dtb LINUX_DTB = sff8104-linux.dtb
build/$(LINUX_DTB): $(obj)/$(LINUX_DTB):
# FIXME: why isn't this producing the correct size DTB? # FIXME: why isn't this producing the correct size DTB?
dtc -p 4096 -I dts -O dtb -o build/$(LINUX_DTB) -i $(MB_DIR) $(MB_DIR)/$(patsubst %.dtb,%.dts,$(LINUX_DTB)) dtc -p 4096 -I dts -O dtb -o $(obj)/$(LINUX_DTB) -i $(MB_DIR) $(MB_DIR)/$(patsubst %.dtb,%.dts,$(LINUX_DTB))
cbfs-files-y += $(LINUX_DTB) cbfs-files-y += $(LINUX_DTB)
$(LINUX_DTB)-file := build/$(LINUX_DTB) $(LINUX_DTB)-file := $(obj)/$(LINUX_DTB)
$(LINUX_DTB)-type := raw $(LINUX_DTB)-type := raw

View File

@ -20,7 +20,7 @@ ramstage-y += memlayout.ld
ramstage-y += fixup_fdt.c ramstage-y += fixup_fdt.c
DTB=build/hifive-unleashed.dtb DTB=$(obj)/hifive-unleashed.dtb
DTS=src/mainboard/sifive/hifive-unleashed/hifive-unleashed.dts DTS=src/mainboard/sifive/hifive-unleashed/hifive-unleashed.dts
$(DTB): $(DTS) $(DTB): $(DTS)
dtc -I dts -O dtb -o $(DTB) $(DTS) dtc -I dts -O dtb -o $(DTB) $(DTS)