summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/u-boot/u-boot.mk
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2008-04-10 21:03:27 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2008-04-10 21:03:27 +0000
commit29feba9db8e514c1c49dfacfc4a7dc34cbb2fba3 (patch)
tree3657d2102a905a73371ba37636131d953b96981e /target/device/Atmel/u-boot/u-boot.mk
parent882a9d2dd2489866e39c7470a112ddcaf21d1010 (diff)
downloadbuildroot-novena-29feba9db8e514c1c49dfacfc4a7dc34cbb2fba3.tar.gz
buildroot-novena-29feba9db8e514c1c49dfacfc4a7dc34cbb2fba3.zip
Avoid hardwiring tftpboot
Diffstat (limited to 'target/device/Atmel/u-boot/u-boot.mk')
-rw-r--r--target/device/Atmel/u-boot/u-boot.mk18
1 files changed, 9 insertions, 9 deletions
diff --git a/target/device/Atmel/u-boot/u-boot.mk b/target/device/Atmel/u-boot/u-boot.mk
index 1f955a3ea..0096337a2 100644
--- a/target/device/Atmel/u-boot/u-boot.mk
+++ b/target/device/Atmel/u-boot/u-boot.mk
@@ -95,18 +95,18 @@ $(UBOOT_BUILD_DIR)/u-boot.bin: $(UBOOT_BUILD_DIR)/.configured $(UBOOT_CUSTOM)
CONFIG_NOSOFTFLOAT=1 \
TOPDIR=$(UBOOT_DIR) \
SRCTREE=$(UBOOT_DIR) \
- TFTPBOOT=/tftpboot \
+ TFTPBOOT=$(TARGET_ATMEL_COPYTO) \
-C $(UBOOT_DIR)
$(BINARIES_DIR)/$(UBOOT_BIN): $(UBOOT_BUILD_DIR)/u-boot.bin
mkdir -p $(BINARIES_DIR)
cp $(UBOOT_BUILD_DIR)/u-boot.bin $(BINARIES_DIR)/$(UBOOT_BIN)
-/tftpboot/$(UBOOT_BIN): $(UBOOT_BUILD_DIR)/u-boot.bin
- mkdir -p /tftpboot
- cp $(UBOOT_BUILD_DIR)/u-boot.bin /tftpboot/$(UBOOT_BIN)
+$(TARGET_ATMEL_COPYTO)/$(UBOOT_BIN): $(UBOOT_BUILD_DIR)/u-boot.bin
+ mkdir -p $(TARGET_ATMEL_COPYTO)
+ cp $(UBOOT_BUILD_DIR)/u-boot.bin $(TARGET_ATMEL_COPYTO)/$(UBOOT_BIN)
-uboot-bin: $(BINARIES_DIR)/$(UBOOT_BIN) /tftpboot/$(UBOOT_BIN)
+uboot-bin: $(BINARIES_DIR)/$(UBOOT_BIN) $(TARGET_ATMEL_COPYTO)/$(UBOOT_BIN)
$(UBOOT_CUSTOM).test: .config $(UBOOT_BUILD_DIR)/.configured
echo "/* Automatically generated file, do not edit */" \
@@ -175,7 +175,7 @@ $(UBOOT_SCR).$(PROJECT): $(UBOOT_SCR) $(MKIMAGE)
-n "autoscr config" \
-d $(UBOOT_SCR) \
$(UBOOT_SCR).$(PROJECT)
- cp $(UBOOT_SCR).$(PROJECT) /tftpboot
+ cp $(UBOOT_SCR).$(PROJECT) $(TARGET_ATMEL_COPYTO)
$(MKIMAGE): $(MKIMAGE_BINLOC)
cp -f $(MKIMAGE_BINLOC) $(MKIMAGE)
@@ -200,7 +200,7 @@ uboot-new:
rm -fr $(UBOOT_BUILD_DIR)/u-boot
rm -fr $(UBOOT_BUILD_DIR)/u-boot.gz
rm -fr $(UBOOT_BUILD_DIR)/u-boot.bin
- rm -fr /tftpboot/$(UBOOT_BIN)
+ rm -fr $(TARGET_ATMEL_COPYTO)/$(UBOOT_BIN)
rm -fr $(BINARIES_DIR)/$(UBOOT_BIN)
.PHONY: uboot-bin
@@ -270,8 +270,8 @@ uboot-test:
-@ls $(UBOOT_BUILD_DIR)/u-boot.bin
-@echo binaries-u-boot.bin=$(BINARIES_DIR)/$(UBOOT_BIN)
-@ls $(BINARIES_DIR)/$(UBOOT_BIN)
- -@echo tftpboot=/tftpboot/$(UBOOT_BIN)
- -@ls /tftpboot/$(UBOOT_BIN)
+ -@echo tftpboot=$(TARGET_ATMEL_COPYTO)/$(UBOOT_BIN)
+ -@ls $(TARGET_ATMEL_COPYTO)/$(UBOOT_BIN)
-@echo "mkimage = $(MKIMAGE)"
-@ls $(MKIMAGE)
-@echo "u-boot script=$(UBOOT_SCR).$(PROJECT)"