All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Proposal for a make option to include an additional stand alone program directory
@ 2007-04-26 17:15 Jeff Mann
  2007-04-26 18:37 ` David Hawkins
  2007-04-26 18:44 ` Timur Tabi
  0 siblings, 2 replies; 28+ messages in thread
From: Jeff Mann @ 2007-04-26 17:15 UTC (permalink / raw)
  To: u-boot

U-Boot Users:

I want to add a featue to the makefile configuration so that a user can
compile u-boot including a directory that gets compiled as a stand alone
program. I propose that users can enter a directory when configuring the
board, for example

make BOARD_config SA=my_stand_alone_prog_dir

so that the user can specify a directory to be compiled with u-boot. As
you can see, the SA directory is added to the mkconfig.mk file and then
included as a SUBDIRS when compiling. The purpose of this option is to
allow a user to *easily* include a directory containing a stand alone
program.

Is this an appropreate feature? Should this be done differently? After
implementing changes from your comments, I'll properly document this
option and send an appropreate patch.

-Jeffrey

----------Proposed patch------------

diff --git a/Makefile b/Makefile
index 9a27bc2..26cf02a
--- a/Makefile
+++ b/Makefile
@@ -231,6 +231,11 @@ # The "tools" are needed early, so put t
 # Don't include stuff already done in $(LIBS)
 SUBDIRS	= tools \
 	  examples
+# Include a directory with a stand alone program in it if the user has
+# configured u-boot for it. 	  
+ifeq ($(COMPILE_STAND_ALONE),y)
+SUBDIRS += $(STAND_ALONE_DIR)
+endif
 
 .PHONY : $(SUBDIRS)
 
diff --git a/mkconfig b/mkconfig
index c3e4cea..da6e2c8 
--- a/mkconfig
+++ b/mkconfig
@@ -72,6 +72,11 @@ echo "BOARD  = $4" >> config.mk
 
 [ "$6" ] && [ "$6" != "NULL" ] && echo "SOC    = $6" >> config.mk
 
+if [ -n "$SA" ]; then
+	echo "COMPILE_STAND_ALONE = y" >> config.mk 
+	echo "STAND_ALONE_DIR = ${SA}" >> config.mk 
+fi
+
 #
 # Create board specific header file
 #

^ permalink raw reply related	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2007-04-30 19:51 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 17:15 [U-Boot-Users] Proposal for a make option to include an additional stand alone program directory Jeff Mann
2007-04-26 18:37 ` David Hawkins
2007-04-26 19:33   ` Jeff Mann
2007-04-26 20:02   ` Wolfgang Denk
2007-04-26 20:43     ` David Hawkins
2007-04-26 18:44 ` Timur Tabi
2007-04-26 19:13   ` Jeff Mann
2007-04-26 19:24     ` Timur Tabi
2007-04-26 20:10       ` Wolfgang Denk
2007-04-26 20:16         ` Timur Tabi
2007-04-26 20:31           ` Wolfgang Denk
2007-04-26 20:05   ` Wolfgang Denk
2007-04-26 20:09     ` Timur Tabi
2007-04-26 20:15       ` Wolfgang Denk
2007-04-26 20:19         ` Timur Tabi
2007-04-26 20:41           ` Wolfgang Denk
2007-04-26 20:53             ` Jerry Van Baren
2007-04-26 20:59             ` Timur Tabi
2007-04-27  9:38               ` Wolfgang Denk
2007-04-27 19:00                 ` Timur Tabi
2007-04-27 19:32                   ` Ulf Samuelsson
2007-04-27 20:13                     ` Jerry Van Baren
2007-04-30 19:51                     ` Wolfgang Denk
2007-04-30 19:45                   ` Wolfgang Denk
2007-04-26 20:52       ` Ulf Samuelsson
2007-04-26 21:04         ` Timur Tabi
2007-04-27  7:45           ` Stefan Roese
2007-04-27  9:40           ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.