Skip to contentSkip to conversation

svn commit: trunk/buildroot

Buildroot ulf at uclibc.org 3 participants 5 messages Jul 5, 2008 – Jul 7, 2008 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Author: ulf
Date: 2008-07-05 02:22:38 -0700 (Sat, 05 Jul 2008) New Revision: 22652

Log:
Add configuration possibility for host Gnome Lib installation

Modified:
trunk/buildroot/Config.in
trunk/buildroot/Makefile

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

buildroot/Config.in +11 -0
@@ -78,6 +78,17 @@
 
 	  The default is $(BASE_DIR)/dl
 
+config BR2_HOST_GLIB
+	string "Location of host Gnome library"
+	default "/usr"
+	help
+	  Directory where Gnome is installed on the host
+	  Gnome applications is installed in $(BR2_HOST_LIB)/bin 
+	  This is needed to build libgtk etc.
+	  The default is /usr
+	  It can be overridden by the BUILDROOT_HOST_GLIB
+	  shell variable
+
 source	"target/device/Config.in.mirrors"
 
 config BR2_STAGING_DIR

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

buildroot/Makefile +12 -2
@@ -36,7 +36,7 @@
 ifneq ($(BUILDROOT_LOCAL),)
 BR2_LOCAL:=$(BUILDROOT_LOCAL)
 else
-BR2_LOCAL:=$(TOPDIR)/local
+BR2_LOCAL:=$(TOPDIR)local
 endif
 
 # $(shell find . -name *_defconfig |sed 's/.*\///')
@@ -57,6 +57,12 @@
 endif
 LOCAL:=$(BR2_LOCAL)
 
+ifneq ($(BUILDROOT_HOST_GLIB),)
+HOST_GLIB:=$(BUILDROOT_HOST_GLIB)
+else
+HOST_GLIB:=$(BR2_HOST_GLIB)
+endif
+
 # To put more focus on warnings, be less verbose as default
 # Use 'make V=1' to see the full commands
 ifdef V
@@ -511,4 +517,8 @@
 
 .PHONY: dummy subdirs release distclean clean config oldconfig \
 	menuconfig tags check test depend defconfig help
-	
+
+status:
+	@echo LOCAL=$(LOCAL)
+	@echo BR2_DL_DIR=$(BR2_DL_DIR)
+	@echo HOST_GLIB=$(HOST_GLIB)
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"ulf" == ulf <[email protected]> writes:

ulf> Author: ulf
ulf> Date: 2008-07-05 02:22:38 -0700 (Sat, 05 Jul 2008) ulf> New Revision: 22652

ulf> Log:
ulf> Add configuration possibility for host Gnome Lib installation

ulf> Modified:
ulf> trunk/buildroot/Config.in
ulf> trunk/buildroot/Makefile

ulf> Changeset:
ulf> Modified: trunk/buildroot/Config.in
ulf> ===================================================================
ulf> --- trunk/buildroot/Config.in 2008-07-05 09:18:54 UTC (rev 22651)
ulf> +++ trunk/buildroot/Config.in 2008-07-05 09:22:38 UTC (rev 22652)
ulf> @@ -78,6 +78,17 @@

ulf> The default is $(BASE_DIR)/dl

ulf> +config BR2_HOST_GLIB
ulf> + string "Location of host Gnome library"
ulf> + default "/usr"
ulf> + help

 ulf> +	  Directory where Gnome is installed on the host
 ulf> +	  Gnome applications is installed in $(BR2_HOST_LIB)/bin 
 ulf> +	  This is needed to build libgtk etc.
 ulf> +	  The default is /usr
 ulf> +	  It can be overridden by the BUILDROOT_HOST_GLIB
 ulf> +	  shell variable

ulf> +
ulf> source "target/device/Config.in.mirrors"

ulf> config BR2_STAGING_DIR

ulf> Modified: trunk/buildroot/Makefile
ulf> ===================================================================
ulf> --- trunk/buildroot/Makefile 2008-07-05 09:18:54 UTC (rev 22651)
ulf> +++ trunk/buildroot/Makefile 2008-07-05 09:22:38 UTC (rev 22652)
ulf> @@ -36,7 +36,7 @@

 ulf>  ifneq ($(BUILDROOT_LOCAL),)
 ulf>  BR2_LOCAL:=$(BUILDROOT_LOCAL)
 ulf>  else

ulf> -BR2_LOCAL:=$(TOPDIR)/local
ulf> +BR2_LOCAL:=$(TOPDIR)local
ulf> endif

Why?

ulf> # $(shell find . -name *_defconfig |sed 's/.*\///') ulf> @@ -57,6 +57,12 @@
ulf> endif
ulf> LOCAL:=$(BR2_LOCAL)

ulf> +ifneq ($(BUILDROOT_HOST_GLIB),)
ulf> +HOST_GLIB:=$(BUILDROOT_HOST_GLIB)
ulf> +else
ulf> +HOST_GLIB:=$(BR2_HOST_GLIB)
ulf> +endif
ulf> +

 ulf>  # To put more focus on warnings, be less verbose as default
 ulf>  # Use 'make V=1' to see the full commands
 ulf>  ifdef V

ulf> @@ -511,4 +517,8 @@

ulf> .PHONY: dummy subdirs release distclean clean config oldconfig \
ulf> menuconfig tags check test depend defconfig help
ulf> -
ulf> +
ulf> +status:
ulf> + @echo LOCAL=$(LOCAL)
ulf> + @echo BR2_DL_DIR=$(BR2_DL_DIR)
ulf> + @echo HOST_GLIB=$(HOST_GLIB)

And why?

Signature · 1 line
Bye, Peter Korsgaard

A message that is not in the archive (sent off-list or not yet received): [email protected]

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

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

Please keep communication on the list.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

ulf> config BR2_STAGING_DIR

Quoted 1 line
Quoted 1 line

ulf> Modified: trunk/buildroot/Makefile
ulf> ===================================================================
ulf> --- trunk/buildroot/Makefile 2008-07-05 09:18:54 UTC (rev 22651)
ulf> +++ trunk/buildroot/Makefile 2008-07-05 09:22:38 UTC (rev 22652)
ulf> @@ -36,7 +36,7 @@
ulf> ifneq ($(BUILDROOT_LOCAL),)
ulf> BR2_LOCAL:=$(BUILDROOT_LOCAL)
ulf> else
ulf> -BR2_LOCAL:=$(TOPDIR)/local
ulf> +BR2_LOCAL:=$(TOPDIR)local
ulf> endif

Quoted 2 lines
Quoted 2 lines

Why?

Ulf> Topdir seems to have a slash already
Ulf> so this changes BR2_LOCAL from ".//local" to "./local"

And, is that a problem? This will break if someone forgets the trailing slash. Double slashes are normally fine.

ulf> +
ulf> +status:
ulf> + @echo LOCAL=$(LOCAL)
ulf> + @echo BR2_DL_DIR=$(BR2_DL_DIR)
ulf> + @echo HOST_GLIB=$(HOST_GLIB)

Quoted 2 lines
Quoted 2 lines

And why?

Ulf> Just some debugging help

Does it need to be checked in?

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw
Quoted 22 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

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

Please keep communication on the list.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

ulf> config BR2_STAGING_DIR

Quoted 1 line
Quoted 1 line

ulf> Modified: trunk/buildroot/Makefile
ulf> =================================================================== ulf> --- trunk/buildroot/Makefile 2008-07-05 09:18:54 UTC (rev 22651) ulf> +++ trunk/buildroot/Makefile 2008-07-05 09:22:38 UTC (rev 22652) ulf> @@ -36,7 +36,7 @@
ulf> ifneq ($(BUILDROOT_LOCAL),)
ulf> BR2_LOCAL:=$(BUILDROOT_LOCAL)
ulf> else
ulf> -BR2_LOCAL:=$(TOPDIR)/local
ulf> +BR2_LOCAL:=$(TOPDIR)local
ulf> endif

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

Why?

Ulf> Topdir seems to have a slash already
Ulf> so this changes BR2_LOCAL from ".//local" to "./local"

And, is that a problem? This will break if someone forgets the trailing slash. Double slashes are normally fine.

Anyone likely to redefine TOPDIR?

Quoted 11 lines

ulf> +
ulf> +status:
ulf> + @echo LOCAL=$(LOCAL)
ulf> + @echo BR2_DL_DIR=$(BR2_DL_DIR)
ulf> + @echo HOST_GLIB=$(HOST_GLIB)

Quoted 2 lines
Quoted 2 lines

And why?

Ulf> Just some debugging help

Does it need to be checked in?

Not neccesarily, but does it hurt?

Best Regards
Ulf Samuelsson

#5 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

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

Hi,

Quoted 3 lines
Quoted 3 lines

And, is that a problem? This will break if someone forgets the trailing slash. Double slashes are normally fine.

Ulf> Anyone likely to redefine TOPDIR?

Yes, if we fix up buildroot to proper support building out of tree like discussed on the list recently.

Ulf> Just some debugging help

Quoted 2 lines
Quoted 2 lines

Does it need to be checked in?

Ulf> Not neccesarily, but does it hurt?

Well, it's extra clutter - I don't see why those 3 variables are particular interesting in general.

Signature · 1 line
Bye, Peter Korsgaard