Skip to contentSkip to conversation

svn commit: trunk/buildroot: package package/busybox project target/ etc...

Buildroot ulf at uclibc.org 7 participants 12 messages Jul 12, 2007

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2007-07-12 06:11:03 -0700 (Thu, 12 Jul 2007) New Revision: 19070

Log:
BSP Patch:
=========================================================
The purpose of the BSP patch is to allow building several boards inside the same buildroot tree. For this to work, each board has to have its own "$(TARGET_DIR)" and all *configurable* packages must be rebuilt for each board.
They are now built in the "$(PROJECT_BUILD_DIR)" All non configurable packages can and should still be built in the "$(BUILD_DIR)".
If a package is built for one board, then when you build for a second board of the same architecture the build becomes a simple copy of the resulting binaries.

-----
Define BR2_PROJECT which will be used as the selector between different boards. Note that BR2_PROJECT allow you to build multiple root file systems for a single board, and should not be confused with BR2_BOARD_NAME which relates to the H/W.

-----
Define PROJECT_BUILD_DIR as "PROJECT_BUILD_DIR/$(PROJECT)"
Define BINARIES_DIR as "binaries/$(PROJECT)"
Define TARGET_DIR as "$(PROJECT_BUILD_DIR)/root"
(some prefix/postfix may apply)

Resulting images are stored in "$(BINARIES_DIR)"

-----
Define a few new environment variables in Makefile

PROJECT: Stripped BR2_PROJECT
DATE: Date of build in YYYY-MM-DD format
HOSTNAME: Stripped BR2_HOSTNAME => /etc/hostname
BANNER: Stripped BR2_BANNER => /etc/issue

Linux and Busybox will be built in $(PROJECT_BUILD_DIR) More patches will be needed later to ensure all configurable packages are built in this directory.

Added:
trunk/buildroot/project/
trunk/buildroot/project/Config.in
trunk/buildroot/project/config/

Modified:
trunk/buildroot/Config.in
trunk/buildroot/Makefile
trunk/buildroot/package/Makefile.in
trunk/buildroot/package/busybox/busybox.mk
trunk/buildroot/target/cloop/cloop.mk
trunk/buildroot/target/jffs2/jffs2root.mk
trunk/buildroot/target/linux/Makefile.in

Changeset:
Modified: trunk/buildroot/Config.in
===================================================================

buildroot/Config.in +2 -0
@@ -6,6 +6,8 @@
 	bool
 	default y
 
+source "project/Config.in"
+
 choice
 	prompt "Target Architecture"
 	default BR2_i386

Modified: trunk/buildroot/Makefile
===================================================================

buildroot/Makefile +27 -7
@@ -155,6 +155,12 @@
 else
 TARGETS:=uclibc
 endif
+
+PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
+HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
+BANNER:=$(strip $(subst ",, $(BR2_BANNER)))
+
+
 include toolchain/Makefile.in
 include package/Makefile.in
 
@@ -183,12 +189,14 @@
 TARGETS_SOURCE:=$(patsubst %,%-source,$(TARGETS))
 TARGETS_DIRCLEAN:=$(patsubst %,%-dirclean,$(TARGETS))
 
-world: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR) $(TARGET_DIR) $(TARGETS)
-dirs: $(DL_DIR) $(BUILD_DIR) $(STAGING_DIR)
+world: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) \
+	$(BINARIES_DIR) $(STAGING_DIR) $(TARGET_DIR) bsp $(TARGETS)
+dirs: $(DL_DIR) $(BUILD_DIR) $(PROJECT_BUILD_DIR) $(STAGING_DIR)
 
-.PHONY: all world dirs clean dirclean distclean source $(TARGETS) \
+.PHONY: all world dirs clean dirclean distclean source bsp $(TARGETS) \
 	$(TARGETS_CLEAN) $(TARGETS_DIRCLEAN) $(TARGETS_SOURCE) \
-	$(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR)
+	$(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) $(STAGING_DIR) \
+	$(PROJECT_BUILD_DIR) $(BINARIES_DIR)
 
 #############################################################
 #
@@ -196,7 +204,8 @@
 # dependencies anywhere else
 #
 #############################################################
-$(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR):
+$(DL_DIR) $(BUILD_DIR) $(TOOL_BUILD_DIR) \
+	$(PROJECT_BUILD_DIR) $(BINARIES_DIR) :
 	@mkdir -p $@
 
 $(STAGING_DIR):
@@ -221,6 +230,16 @@
 	-find $(TARGET_DIR) -type d -name CVS | xargs rm -rf
 	-find $(TARGET_DIR) -type d -name .svn | xargs rm -rf
 
+bsp:	$(TARGET_DIR)/etc/issue	$(TARGET_DIR)/etc/hostname
+
+$(TARGET_DIR)/etc/issue:	$(TARGET_DIR) .config
+	echo ""			>  $(TARGET_DIR)/etc/issue
+	echo "" 		>> $(TARGET_DIR)/etc/issue
+	echo "$(BANNER)"	>> $(TARGET_DIR)/etc/issue
+
+$(TARGET_DIR)/etc/hostname:	$(TARGET_DIR) .config
+	echo "$(HOSTNAME)" > $(TARGET_DIR)/etc/hostname
+
 source: $(TARGETS_SOURCE) $(HOST_SOURCE)
 
 .config.check: dependencies
@@ -245,12 +264,13 @@
 ifeq ($(DL_DIR),$(BASE_DIR)/dl)
 	rm -rf $(DL_DIR)
 endif
-	rm -rf $(BUILD_DIR) $(LINUX_KERNEL) $(IMAGE) $(BASE_DIR)/include \
+	rm -rf $(BUILD_DIR) $(PROJECT_BUILD_DIR)  $(BINARIES_DIR) \
+	$(LINUX_KERNEL) $(IMAGE) $(BASE_DIR)/include \
 		.config.cmd
 	$(MAKE) -C $(CONFIG) clean
 
 sourceball:
-	rm -rf $(BUILD_DIR)
+	rm -rf $(BUILD_DIR) $(PROJECT_BUILD_DIR)  $(BINARIES_DIR)
 	set -e; \
 	cd ..; \
 	rm -f buildroot.tar.bz2; \

Modified: trunk/buildroot/package/Makefile.in
===================================================================

buildroot/package/Makefile.in +7 -3
@@ -69,8 +69,12 @@
 endif
 #PATCH_DIR=$(BASE_DIR)/sources/patches
 BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
-TARGET_DIR:=$(BUILD_DIR)/root
 
+PROJECT_BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)project_build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)/$(PROJECT)
+BINARIES_DIR:=$(BASE_DIR)/binaries/$(PROJECT)
+TARGET_DIR:=$(PROJECT_BUILD_DIR)/root
+
+
 GNU_TARGET_SUFFIX:=-$(strip $(subst ",, $(BR2_GNU_TARGET_SUFFIX)))
 #"))
 
@@ -81,7 +85,7 @@
 
 # Quotes are needed for spaces et al in path components.
 TARGET_PATH="$(TOOL_BUILD_DIR)/bin:$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(PATH)"
-IMAGE:=$(BASE_DIR)/rootfs.$(ARCH)$(ARCH_FPU_SUFFIX)
+IMAGE:=$(BINARIES_DIR)/rootfs.$(ARCH)$(ARCH_FPU_SUFFIX)
 GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
 REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)$(GNU_TARGET_SUFFIX)
 TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
@@ -93,7 +97,7 @@
 #"))
 TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)toolchain_build_$(TOOLCHAIN_EXTERNAL_PREFIX)
 TARGET_PATH="$(STAGING_DIR)/bin:$(TOOL_BUILD_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)"
-IMAGE:=$(BASE_DIR)/rootfs.$(TOOLCHAIN_EXTERNAL_PREFIX)
+IMAGE:=$(BINARIES_DIR)/rootfs.$(TOOLCHAIN_EXTERNAL_PREFIX)
 REAL_GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX)
 GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX)
 KERNEL_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-

Modified: trunk/buildroot/package/busybox/busybox.mk
===================================================================

buildroot/package/busybox/busybox.mk +4 -4
@@ -7,13 +7,13 @@
 
 ifeq ($(strip $(BR2_PACKAGE_BUSYBOX_SNAPSHOT)),y)
 # Be aware that this changes daily....
-BUSYBOX_DIR:=$(BUILD_DIR)/busybox
+BUSYBOX_DIR:=$(PROJECT_BUILD_DIR)/busybox
 BUSYBOX_SOURCE:=busybox-snapshot.tar.bz2
 BUSYBOX_SITE:=http://www.busybox.net/downloads/snapshots
 else
 BUSYBOX_VERSION=$(strip $(subst ",, $(BR2_BUSYBOX_VERSION)))
 #"))
-BUSYBOX_DIR:=$(BUILD_DIR)/busybox-$(BUSYBOX_VERSION)
+BUSYBOX_DIR:=$(PROJECT_BUILD_DIR)/busybox-$(BUSYBOX_VERSION)
 BUSYBOX_SOURCE:=busybox-$(BUSYBOX_VERSION).tar.bz2
 BUSYBOX_SITE:=http://www.busybox.net/downloads
 endif
@@ -31,7 +31,7 @@
 busybox-source: $(DL_DIR)/$(BUSYBOX_SOURCE) $(BUSYBOX_CONFIG_FILE) dependencies
 
 $(BUSYBOX_DIR)/.unpacked: $(DL_DIR)/$(BUSYBOX_SOURCE)
-	$(BUSYBOX_UNZIP) $(DL_DIR)/$(BUSYBOX_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	$(BUSYBOX_UNZIP) $(DL_DIR)/$(BUSYBOX_SOURCE) | tar -C $(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -
 ifeq ($(BR2_PACKAGE_SYSKLOGD),y)
 	# if we have external syslogd, force busybox to use it
 	$(SED) "/#include.*busybox\.h/a#define CONFIG_SYSLOGD" $(BUSYBOX_DIR)/init/init.c
@@ -127,7 +127,7 @@
 
 busybox: uclibc $(TARGET_DIR)/bin/busybox
 
-busybox-menuconfig: host-sed $(BUILD_DIR) busybox-source $(BUSYBOX_DIR)/.configured
+busybox-menuconfig: host-sed $(PROJECT_BUILD_DIR) busybox-source $(BUSYBOX_DIR)/.configured
 	$(MAKE) __TARGET_ARCH=$(ARCH) -C $(BUSYBOX_DIR) menuconfig
 	cp -f $(BUSYBOX_DIR)/.config $(BUSYBOX_CONFIG_FILE)
 

Added: trunk/buildroot/project/Config.in
===================================================================

buildroot/project/Config.in +26 -0
@@ -0,0 +1,26 @@
+menu "Project Options"
+
+config BR2_PROJECT
+	string "Project name"
+	default "uclibc"
+	help
+	  The project name is used to define subdirectories
+	  * where the Board Support Packages are built
+	    (Linux,Root fs Bootmonitor,Utilities etc.)
+	  * where the resulting binaries are stored.
+	  Older targets may still build in the build_<arch>
+	  and store binaries in the top directory.
+
+config BR2_HOSTNAME
+	string "hostname"
+	default "uclibc"
+	help
+	  The hostname string is stored in "/etc/hostname"
+
+config BR2_BANNER
+	string "banner"
+	default "Welcome to the Erik's uClibc development environment."
+	help
+	  The banner string is stored in "/etc/issue"
+
+endmenu

Modified: trunk/buildroot/target/cloop/cloop.mk
===================================================================

buildroot/target/cloop/cloop.mk +5 -4
@@ -15,6 +15,7 @@
 CLOOP_SOURCE=cloop_$(CLOOP_VERSION)-5.tar.gz
 CLOOP_SITE=http://developer.linuxtag.net/knoppix/sources
 
+CLOOP_TARGET:=$(IMAGE).cloop
 ### Note: not used yet! ck
 ### $(DL_DIR)/$(CLOOP_PATCH1):
 ### 	$(WGET) -P $(DL_DIR) $(CLOOP_PATCH1_URL)/$(CLOOP_PATCH1)
@@ -78,19 +79,19 @@
 	@rm -rf $(TARGET_DIR)/usr/share/man
 	@rm -rf $(TARGET_DIR)/usr/info
 	@rmdir -p --ignore-fail-on-non-empty $(TARGET_DIR)/usr/share
-	### $(CLOOP_DIR)/create_compressed_fs -q -D target/default/device_table.txt $(TARGET_DIR) $(IMAGE).cloop
-	## mkisofs -r $(TARGET_DIR) | $(CLOOP_DIR)/create_compressed_fs - 65536 > $(IMAGE).cloop
+	### $(CLOOP_DIR)/create_compressed_fs -q -D target/default/device_table.txt $(TARGET_DIR) $(CLOOP_TARGET)
+	## mkisofs -r $(TARGET_DIR) | $(CLOOP_DIR)/create_compressed_fs - 65536 > $(CLOOP_TARGET)
 	sudo /sbin/losetup -d /dev/loop1
 	sudo /sbin/losetup /dev/loop1 $(IMAGE).cramfs
 	sudo mkdir -p /mnt/compressed
 	sudo mount -o ro -t cramfs /dev/loop1 /mnt/compressed
-	mkisofs -r /mnt/compressed | $(CLOOP_DIR)/create_compressed_fs - 65536 > $(IMAGE).cloop
+	mkisofs -r /mnt/compressed | $(CLOOP_DIR)/create_compressed_fs - 65536 > $(CLOOP_TARGET)
 	- symlinks -r /mnt/compressed
 	sudo umount /mnt/compressed
 	@echo "Mounting a compressed image:"
 	@echo " sudo mkdir -p /mnt/compressed"
 	@echo " sudo /sbin/insmod cloop"
-	@echo " sudo /sbin/losetup /dev/cloop1 $(IMAGE).cloop"
+	@echo " sudo /sbin/losetup /dev/cloop1 $(CLOOP_TARGET)"
 	@echo " sudo mount -o ro -t iso9660 /dev/cloop1 /mnt/compressed"
 
 clooproot-source: cloop-source

Modified: trunk/buildroot/target/jffs2/jffs2root.mk
===================================================================

buildroot/target/jffs2/jffs2root.mk +1 -1
@@ -66,7 +66,7 @@
 		>> $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
 endif
 	# Use fakeroot so mkfs.jffs2 believes the previous fakery
-	echo "$(MKFS_JFFS2) $(JFFS2_OPTS) -d $(BUILD_DIR)/root -o $(JFFS2_TARGET)" \
+	echo "$(MKFS_JFFS2) $(JFFS2_OPTS) -d $(TARGET_DIR) -o $(JFFS2_TARGET)" \
 		>> $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
 	chmod a+x $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))
 	$(STAGING_DIR)/usr/bin/fakeroot -- $(STAGING_DIR)/_fakeroot.$(notdir $(JFFS2_TARGET))

Modified: trunk/buildroot/target/linux/Makefile.in
===================================================================

buildroot/target/linux/Makefile.in +3 -3
@@ -58,7 +58,7 @@
 LINUX26_KERNEL=linux-kernel-$(LINUX26_VERSION)-$(KERNEL_ARCH)
 
 # Version of Linux AFTER patches
-LINUX26_DIR=$(BUILD_DIR)/linux-$(LINUX26_VERSION)
+LINUX26_DIR=$(PROJECT_BUILD_DIR)/linux-$(LINUX26_VERSION)
 
 # for packages that need it
 LINUX_VERSION:=$(LINUX_VERSION)
@@ -89,10 +89,10 @@
 
 $(LINUX26_DIR)/.unpacked: $(DL_DIR)/$(LINUX26_SOURCE)
 	rm -rf $(LINUX26_DIR)
-	$(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+	$(LINUX26_BZCAT) $(DL_DIR)/$(LINUX26_SOURCE) | tar -C $(PROJECT_BUILD_DIR) $(TAR_OPTIONS) -
 ifneq ($(DOWNLOAD_LINUX26_VERSION),$(LINUX26_VERSION))
 	# Rename the dir from the downloaded version to the AFTER patch version
-	mv -f $(BUILD_DIR)/linux-$(DOWNLOAD_LINUX26_VERSION) $(LINUX26_DIR)
+	mv -f $(PROJECT_BUILD_DIR)/linux-$(DOWNLOAD_LINUX26_VERSION) $(LINUX26_DIR)
 endif
 	touch $@
 
#1 lore raw

For patches like this and the other ones you are doing, I really feel you should be required to update the on-line documentation at the same time to denote all these changes you are making. It's difficult enough to keep up with all of the changes. Please make sure when you add new features like this in the future to not do so unless you document it. Please also document this BSP patch for the on-line docs. Thanks.

-Steve

#2 lore raw

tor 2007-07-12 klockan 08:25 -0500 skrev Steven J. Hill:

Quoted 7 lines

For patches like this and the other ones you are doing, I really feel you should be required to update the on-line documentation at the same time to denote all these changes you are making. It's difficult enough to keep up with all of the changes. Please make sure when you add new features like this in the future to not do so unless you document it. Please also document this BSP patch for the on-line docs. Thanks.

OK, didn't think about that.
Will do this at first convenient time.

Quoted 5 lines

-Steve
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

#3 lore raw
In reply to Steven J. Hill

tor 2007-07-12 klockan 08:25 -0500 skrev Steven J. Hill:

Quoted 7 lines

For patches like this and the other ones you are doing, I really feel you should be required to update the on-line documentation at the same time to denote all these changes you are making. It's difficult enough to keep up with all of the changes. Please make sure when you add new features like this in the future to not do so unless you document it. Please also document this BSP patch for the on-line docs. Thanks.

Is there a recommended tool to edit HTML with CSS?

Quoted 5 lines

-Steve
_______________________________________________
buildroot mailing list
buildroot at uclibc.org
http://busybox.net/mailman/listinfo/buildroot

#4 lore raw
Quoted 1 line

Is there a recommended tool to edit HTML with CSS?

(Sorry for being OT, but he asked...)

Just because there is an ongoing discussion about this topic in the users mailing list: Take a look at SciTE, a good text editor capable of installing lexer plugins and of highlighting nested languages like CSS in HTML. There are add-ons and derivatives like SciTE-st - you may want to take a look at the web site (http://www.scintilla.org/SciTE.html) and the mailing list archives. BTW: The editor runs likewise well under Linux and Windows.
--
Alexander Kriegisch

#5 lore raw
In reply to Ulf Samuelsson
Quoted 10 lines · Ulf Samuelsson

tor 2007-07-12 klockan 08:25 -0500 skrev Steven J. Hill:

Quoted 7 lines

For patches like this and the other ones you are doing, I really feel you should be required to update the on-line documentation at the same time to denote all these changes you are making. It's difficult enough to keep up with all of the changes. Please make sure when you add new features like this in the future to not do so unless you document it. Please also document this BSP patch for the on-line docs. Thanks.

Is there a recommended tool to edit HTML with CSS?

./busybox vi

#6 lore raw
In reply to ulf at uclibc.org
Quoted 12 lines · ulf at uclibc.org

Author: ulf
Date: 2007-07-12 06:11:03 -0700 (Thu, 12 Jul 2007) New Revision: 19070

Modified: trunk/buildroot/Makefile
===================================================================

buildroot/Makefile +0 -0
@@ -155,6 +155,12 @@

else
TARGETS:=uclibc
endif

buildroot/Makefile line 161

Quoted 4 lines
buildroot/Makefile +4 -0
+
+PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
+HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
+BANNER:=$(strip $(subst ",, $(BR2_BANNER)))

This breaks vi's syntax highlighing, please fix
Also, you're aware that HOSTNAME previously was set to the hostname of the build host and you just broke this, aren't you?

Quoted 5 lines

Added: trunk/buildroot/project/Config.in
===================================================================

buildroot/project/Config.in line 9

Quoted 9 lines
buildroot/project/Config.in +9 -0
@@ -0,0 +1,26 @@
+menu "Project Options"
+
+config BR2_PROJECT
+	string "Project name"
+	default "uclibc"
+	help
+	  The project name is used to define subdirectories
+	  * where the Board Support Packages are built
+	    (Linux,Root fs Bootmonitor,Utilities etc.)

whitespace dammaged CSVs

Please add inline documentation to PROJECT_BUILD_DIR and BUILD_DIR

#7 lore raw

tor 2007-07-12 klockan 16:42 +0200 skrev Bernhard Fischer:

Quoted 5 lines · ulf at uclibc.org
Quoted 3 lines

Author: ulf
Date: 2007-07-12 06:11:03 -0700 (Thu, 12 Jul 2007) New Revision: 19070

Quoted 14 lines

buildroot/Makefile line 161

Quoted 12 lines

Modified: trunk/buildroot/Makefile
===================================================================

buildroot/Makefile +0 -0
@@ -155,6 +155,12 @@

else
TARGETS:=uclibc
endif

buildroot/Makefile +4 -0
+
+PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
+HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
+BANNER:=$(strip $(subst ",, $(BR2_BANNER)))

This breaks vi's syntax highlighing, please fix

Pls supply a template on what you want me to do.

"vi" on OpenSuSE is not compiled with that extension so I can't test that.
On gedit there
This is how it is done in other places in buildroot.

Quoted 3 lines

Also, you're aware that HOSTNAME previously was set to the hostname of the build host and you just broke this, aren't you?

OK, I'll change to TARGET_HOSTNAME

Quoted 8 lines
Quoted 8 lines

Added: trunk/buildroot/project/Config.in
===================================================================

buildroot/project/Config.in +3 -0
@@ -0,0 +1,26 @@
+menu "Project Options"
+
+config BR2_PROJECT
Quoted 8 lines

buildroot/project/Config.in line 9

Quoted 6 lines
buildroot/project/Config.in +6 -0
+	string "Project name"
+	default "uclibc"
+	help
+	  The project name is used to define subdirectories
+	  * where the Board Support Packages are built
+	    (Linux,Root fs Bootmonitor,Utilities etc.)

whitespace dammaged CSVs

Is it the indentation you don't like? Pls elaborate.

Quoted 2 lines

Please add inline documentation to PROJECT_BUILD_DIR and BUILD_DIR

/Done, pls check if this is what you meant.

Quoted 4 lines

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

#8 lore raw

Ulf, Bernhard,
All,

Quoted 7 lines · Ulf Samuelsson

tor 2007-07-12 klockan 16:42 +0200 skrev Bernhard Fischer:

Quoted 5 lines · ulf at uclibc.org

buildroot/Makefile line 161

Quoted 3 lines
buildroot/Makefile +3 -0
+PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
+HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
+BANNER:=$(strip $(subst ",, $(BR2_BANNER)))

This breaks vi's syntax highlighing, please fix

Pls supply a template on what you want me to do.

I guess something like the following:

PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
# Shut up you stupid vim! "
HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
# Shut up you stupid vim! "

And so on... Maybe comments at the end of the line would do as well...

Regards,
Yann E. MORIN.

PS. Using vi exclusively here, but no syntax highlighting, which I find
ultimately annoying. Thank you, I know (or tend to) what I'm doing! :-)
YEM.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< ?_? >==-- ?------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
?------------------------------?-------?------------------?--------------------?
#9 lore raw

[Buildroot] svn commit: trunk/buildroot: package?package/busybox project target/ etc...

Quoted 10 lines · Yann E. MORIN

Ulf, Bernhard,
All,

Quoted 6 lines · Ulf Samuelsson

tor 2007-07-12 klockan 16:42 +0200 skrev Bernhard Fischer:

Quoted 5 lines · ulf at uclibc.org

buildroot/Makefile line 161

Quoted 3 lines
buildroot/Makefile +3 -0
+PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
+HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
+BANNER:=$(strip $(subst ",, $(BR2_BANNER)))

This breaks vi's syntax highlighing, please fix

Quoted 6 lines
Quoted 1 line

Pls supply a template on what you want me to do.

I guess something like the following:

PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
# Shut up you stupid vim! "

close.
# ")))

Ulf, just do :syntax on

Quoted 10 lines

HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
# Shut up you stupid vim! "

And so on... Maybe comments at the end of the line would do as well...

Regards,
Yann E. MORIN.

PS. Using vi exclusively here, but no syntax highlighting, which I find
ultimately annoying. Thank you, I know (or tend to) what I'm doing! :-)

It's handy at times..

#10 lore raw

[Buildroot] svn commit: trunk/buildroot: package?package/busybox project target/ etc...

Bernhard, Ulf,
All,

Quoted 5 lines · Bernhard Fischer
Quoted 2 lines

PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
# Shut up you stupid vim! "

close.
# ")))

Gosh! I forgot the parenthesis... :-(

But not quite yet! Only two parenthesis are outside the quotes! So:
# "))
should be enough, no? ;-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< ?_? >==-- ?------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
?------------------------------?-------?------------------?--------------------?
#11 lore raw

[Buildroot] svn commit: trunk/buildroot: package?package/busybox project target/ etc...

In reply to Bernhard Fischer
Quoted 13 lines · Bernhard Fischer
Quoted 12 lines · Yann E. MORIN

Ulf, Bernhard,
All,

Quoted 7 lines · Ulf Samuelsson

tor 2007-07-12 klockan 16:42 +0200 skrev Bernhard Fischer:

Quoted 5 lines · ulf at uclibc.org

buildroot/Makefile line 161

Quoted 3 lines
buildroot/Makefile +3 -0
+PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
+HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
+BANNER:=$(strip $(subst ",, $(BR2_BANNER)))

This breaks vi's syntax highlighing, please fix

Pls supply a template on what you want me to do.

Quoted 7 lines
Quoted 4 lines

I guess something like the following:

PROJECT:=$(strip $(subst ",, $(BR2_PROJECT)))
# Shut up you stupid vim! "

close.
# ")))

A nother way to get around would be
PROJECT:=$(strip $(patsubst "%",%,$(BR2_PROJECT))

It just catches the first and the last '"' but in most cases this is enough.

These characters sometimes come up as values in .config. So it would be cleaner to fix it, when this file is included.
Sometimes even variables in some Makefiles are (incorrect) defined with these. Here the Makefile should be updated...

Quoted 8 lines

Ulf, just do :syntax on

Quoted 5 lines

HOSTNAME:=$(strip $(subst ",, $(BR2_HOSTNAME)))
# Shut up you stupid vim! "

And so on... Maybe comments at the end of the line would do as well...

Quoted 7 lines
Quoted 5 lines

Regards,
Yann E. MORIN.

PS. Using vi exclusively here, but no syntax highlighting, which I find
ultimately annoying. Thank you, I know (or tend to) what I'm doing! :-)

It's handy at times..

It even can help to find wrong-closed brackets. the difference between ) and } could be very small after a whole day of work,