Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] post-build script calling another buildroot fails
@ 2013-02-12 21:30 John Stile
  0 siblings, 0 replies; only message in thread
From: John Stile @ 2013-02-12 21:30 UTC (permalink / raw)
  To: buildroot

I am having a problem with one make buildroot calling another make
buildroot with a different configuration, via a post-build script.

One configuration is for NAND flash
Another  configuration is for NOR flash.
The NAND flash .config calls a post-build script.
The post-build scrip tries to make the NOR buildroot.

If I run the script from the command line it works.

The error when called from NAND buildroot make:
make[1]: Entering directory
`/home/jstile/svn_rmserver/buildroot-2011.11'
make[1]: *** No rule to make target `project_failsafe_defconfig'.  Stop.
make[1]: Leaving directory `/home/jstile/svn_rmserver/buildroot-2011.11'

Filesystem layout looks like this:
|
|-buildroot-2011.11/
| |-.config
| |-configs/project_failsafe_defconfig
| |-output/images/rootfs.jffs2
| \-post-build-script.bash
| 
|-failsafe/
| |-images/rootfs.jffs2

'buildroot-2011.11' is where I build my NAND system.
'failsafe' is where I build my NOR system.

From buildroot-2011.11 directory, I run 'make', which calls my
post-build-script.bash as the post-build script.

The post-build script:
#!/bin/bash
mkdir -p ../failsafe
cd ../failsafe
make -C ../buildroot-2011.11 O=$(pwd) project_failsafe_defconfig
make

The first make statement is the source of the error message.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-12 21:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-12 21:30 [Buildroot] post-build script calling another buildroot fails John Stile

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox