Skip to contentSkip to conversation

svn commit: trunk/buildroot/target/u-boot

Buildroot jacmet at uclibc.org 2 participants 7 messages Jan 5, 2009 – Jan 6, 2009

lore
Share & tools
lore
#0 lore raw

Author: jacmet
Date: 2009-01-05 16:12:34 +0000 (Mon, 05 Jan 2009) New Revision: 24693

Log:
u-boot: revert U_BOOT_TARGET part of r24646

More u-boot build unbreaking. r24646 added U_BOOT_TARGET which uses the nonexisting BOARDNAME variable, which means that the filename expands to -u-boot-*, confusing ln.

There's limited point in having that symlink in the first please, so simply revert that hunk.

Modified:
trunk/buildroot/target/u-boot/Makefile.in

Changeset:
Modified: trunk/buildroot/target/u-boot/Makefile.in
===================================================================

buildroot/target/u-boot/Makefile.in +1 -4
@@ -14,7 +14,6 @@
 U_BOOT_PATCH_DIR:=$(PROJECT_BUILD_DIR)/u-boot-$(U_BOOT_VERSION)-patches
 U_BOOT_CAT:=$(BZCAT)
 U_BOOT_BIN:=u-boot.bin
-U_BOOT_TARGET:=$(BOARD_NAME)-u-boot-$(U_BOOT_VERSION)-$(DATE).bin
 U_BOOT_TOOLS_BIN:=mkimage
 U_BOOT_TOOLS:=$(STAGING_DIR)/usr/bin/$(U_BOOT_TOOLS_BIN)
 MKIMAGE:=$(U_BOOT_TOOLS)
@@ -179,10 +178,8 @@
 		 -C $(U_BOOT_DIR)
 
 $(BINARIES_DIR)/$(U_BOOT_BIN): $(U_BOOT_DIR)/$(U_BOOT_BIN)
-	rm -f $(BINARIES_DIR)/$(U_BOOT_TARGET)
 	rm -f $(BINARIES_DIR)/$(U_BOOT_BIN)
-	cp -dpf $(U_BOOT_DIR)/$(U_BOOT_BIN) $(BINARIES_DIR)/$(U_BOOT_TARGET)
-	(cd $(BINARIES_DIR); ln -s $(U_BOOT_TARGET) $(U_BOOT_BIN)) 
+	cp -dpf $(U_BOOT_DIR)/$(U_BOOT_BIN) $(BINARIES_DIR)
 
 $(U_BOOT_TOOLS):	$(U_BOOT_DIR)/tools/$(U_BOOT_TOOLS_BIN)
 	cp -dpf $(U_BOOT_DIR)/tools/$(U_BOOT_TOOLS_BIN) $(STAGING_DIR)/usr/bin/
#1 lore raw

m?n 2009-01-05 klockan 16:12 +0000 skrev jacmet at uclibc.org:

Quoted 7 lines

Author: jacmet
Date: 2009-01-05 16:12:34 +0000 (Mon, 05 Jan 2009) New Revision: 24693

Log:
u-boot: revert U_BOOT_TARGET part of r24646

Quoted 7 lines

More u-boot build unbreaking. r24646 added U_BOOT_TARGET which uses the nonexisting BOARDNAME variable, which means that the filename expands to -u-boot-*, confusing ln.

There's limited point in having that symlink in the first please, so simply revert that hunk.

If you have a script that needs the filename u-boot.bin then it make sense.

Quoted 4 lines

Modified:
trunk/buildroot/target/u-boot/Makefile.in

The "complex" file name is needed, unless you only work with a single board.

We obviously need to find a way that does not break the build of course.

Many targets define BR2_BOARD_NAME in their Config.in's and it may make sense to have a common BR2_BOARD_NAME Then it will be always be defined.
Default to "uclibc" is probably OK.

Quoted 30 lines

Changeset:
Modified: trunk/buildroot/target/u-boot/Makefile.in
===================================================================

buildroot/target/u-boot/Makefile.in +1 -4
@@ -14,7 +14,6 @@
 U_BOOT_PATCH_DIR:=$(PROJECT_BUILD_DIR)/u-boot-$(U_BOOT_VERSION)-patches
 U_BOOT_CAT:=$(BZCAT)
 U_BOOT_BIN:=u-boot.bin
-U_BOOT_TARGET:=$(BOARD_NAME)-u-boot-$(U_BOOT_VERSION)-$(DATE).bin
 U_BOOT_TOOLS_BIN:=mkimage
 U_BOOT_TOOLS:=$(STAGING_DIR)/usr/bin/$(U_BOOT_TOOLS_BIN)
 MKIMAGE:=$(U_BOOT_TOOLS)
@@ -179,10 +178,8 @@
 		 -C $(U_BOOT_DIR)
 
 $(BINARIES_DIR)/$(U_BOOT_BIN): $(U_BOOT_DIR)/$(U_BOOT_BIN)
-	rm -f $(BINARIES_DIR)/$(U_BOOT_TARGET)
 	rm -f $(BINARIES_DIR)/$(U_BOOT_BIN)
-	cp -dpf $(U_BOOT_DIR)/$(U_BOOT_BIN) $(BINARIES_DIR)/$(U_BOOT_TARGET)
-	(cd $(BINARIES_DIR); ln -s $(U_BOOT_TARGET) $(U_BOOT_BIN)) 
+	cp -dpf $(U_BOOT_DIR)/$(U_BOOT_BIN) $(BINARIES_DIR)
 
 $(U_BOOT_TOOLS):	$(U_BOOT_DIR)/tools/$(U_BOOT_TOOLS_BIN)
 	cp -dpf $(U_BOOT_DIR)/tools/$(U_BOOT_TOOLS_BIN) $(STAGING_DIR)/usr/bin/

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

#2 lore raw

m?n 2009-01-05 klockan 19:12 +0100 skrev Ulf Samuelsson:

Quoted 27 lines

m?n 2009-01-05 klockan 16:12 +0000 skrev jacmet at uclibc.org:

Quoted 7 lines

Author: jacmet
Date: 2009-01-05 16:12:34 +0000 (Mon, 05 Jan 2009) New Revision: 24693

Log:
u-boot: revert U_BOOT_TARGET part of r24646

Quoted 7 lines

More u-boot build unbreaking. r24646 added U_BOOT_TARGET which uses the nonexisting BOARDNAME variable, which means that the filename expands to -u-boot-*, confusing ln.

There's limited point in having that symlink in the first please, so simply revert that hunk.

If you have a script that needs the filename u-boot.bin then it make sense.

Quoted 4 lines

Modified:
trunk/buildroot/target/u-boot/Makefile.in

The "complex" file name is needed, unless you only work with a single board.

Quoted 9 lines

We obviously need to find a way that does not break the build of course.

Many targets define BR2_BOARD_NAME in their Config.in's and it may make sense to have a common BR2_BOARD_NAME Then it will be always be defined.
Default to "uclibc" is probably OK.

Even better is to define it as

?U_BOOT_TARGET:=$(PROJECT)-u-boot-$(U_BOOT_VERSION)-$(DATE).bin

That is always defined, so that should not break the build.

BR
/Ulf

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ulf" == Ulf Samuelsson <[email protected]> writes:

Ulf> Even better is to define it as

Ulf> ?U_BOOT_TARGET:=$(PROJECT)-u-boot-$(U_BOOT_VERSION)-$(DATE).bin

But why would we want to do this? We don't add project name, version number or date to the file system images and so on.

Having a fixed name seems simpler to me (E.G. if you have an update script in your uboot to tftp a new bootloader and write it to flash, having a fixed name is a lot easier than typing in the correct version+date.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
In reply to Ulf Samuelsson
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ulf" == Ulf Samuelsson <[email protected]> writes:

Hi,

Ulf> The "complex" file name is needed, unless you only Ulf> work with a single board.

I don't get it - Isn't that why we have binaries/<project>? Even so, isn't that the same problem with the other files? (file system images, kernels)?

Ulf> We obviously need to find a way that does not break the build of Ulf> course.

Ulf> Many targets define BR2_BOARD_NAME in their Config.in's Ulf> and it may make sense to have a common BR2_BOARD_NAME Ulf> Then it will be always be defined.
Ulf> Default to "uclibc" is probably OK.

Isn't that what we have BR2_PROJECT for?

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

m?n 2009-01-05 klockan 21:12 +0100 skrev Peter Korsgaard:

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ulf" == Ulf Samuelsson <[email protected]> writes:

Hi,

Ulf> The "complex" file name is needed, unless you only Ulf> work with a single board.

I don't get it - Isn't that why we have binaries/<project>?

YOu copy things to binaries/PROJECT to have a single directory which you can compress, but if you copy the stuff to the tftp directory then you have a mess.
You have to manually rename this.

Quoted 4 lines

Even so,
isn't that the same problem with the other files? (file system images, kernels)?

The kernel is already doing this in the "advanced" makefile.

The rootfs should be doing it. and in this case PROJECT Is definitely the right one to use.

Quoted 10 lines

Ulf> We obviously need to find a way that does not break the build of Ulf> course.

Ulf> Many targets define BR2_BOARD_NAME in their Config.in's Ulf> and it may make sense to have a common BR2_BOARD_NAME Ulf> Then it will be always be defined.
Ulf> Default to "uclibc" is probably OK.

Isn't that what we have BR2_PROJECT for?

Yes and no,

You can use BR2_PROJECT, but if you:

make XXXX_config
when building u-boot-<VERSION>, it also makes sense to name the binary

<XXXX>-u-boot-<VERSION>-<DATE>.bin

because regardless of which project you are building, the binary should end up the same.

<DATE> is there to give you some kind of revision information so you do not overwrite older working results.
It is not perfect, but I think it is good enough.

If you are building several projects where the U-Boot differs I.E: if a header file is first copied to "include/configs" then it would make sense to call it:

?<PROJECT>-u-boot-<VERSION>-<DATE>.bin

The difference is minor, so I guess we go with PROJECT for now.

BR
Ulf Samuelsson

#6 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ulf" == Ulf Samuelsson <[email protected]> writes:

Ulf> m?n 2009-01-05 klockan 21:12 +0100 skrev Peter Korsgaard:

Quoted 4 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Ulf" == Ulf Samuelsson <[email protected]> writes:

Hi,

Ulf> The "complex" file name is needed, unless you only Ulf> work with a single board.

Quoted 2 lines
Quoted 2 lines

I don't get it - Isn't that why we have binaries/<project>?

Ulf> YOu copy things to binaries/PROJECT to have a single directory Ulf> which you can compress, but if you copy the stuff to Ulf> the tftp directory then you have a mess.
Ulf> You have to manually rename this.

tftp directory? Is that this ATMEL_COPY_TO thing? I don't recall that ever being discussed on the list.

Lets just start by making things simple before adding all kinds of extra stuff. Buildroot should imho just worry about building stuff and putting it under binaries/<project>, and not install it somewhere for tftp/nfs/whatever.

Quoted 3 lines
Quoted 3 lines

Even so,
isn't that the same problem with the other files? (file system images, kernels)?

Ulf> The kernel is already doing this in the "advanced" makefile.

Ulf> The rootfs should be doing it. and in this case PROJECT Is definitely Ulf> the right one to use.

Ulf> We obviously need to find a way that does not break the build of Ulf> course.

I don't agree. Having things under binaries/<project> is enough.

Ulf> Many targets define BR2_BOARD_NAME in their Config.in's Ulf> and it may make sense to have a common BR2_BOARD_NAME Ulf> Then it will be always be defined.
Ulf> Default to "uclibc" is probably OK.

Quoted 2 lines
Quoted 2 lines

Isn't that what we have BR2_PROJECT for?

Ulf> Yes and no,

Ulf> You can use BR2_PROJECT, but if you:

Ulf> make XXXX_config
Ulf> when building u-boot-<VERSION>, it also makes sense to name the binary

Ulf> <XXXX>-u-boot-<VERSION>-<DATE>.bin

Ulf> because regardless of which project you are building, Ulf> the binary should end up the same.

Ulf> <DATE> is there to give you some kind of revision information Ulf> so you do not overwrite older working results. Ulf> It is not perfect, but I think it is good enough.

Sorry, I still don't think this belongs in buildroot.

Signature · 1 line
Bye, Peter Korsgaard