[U-Boot] [RFC PATCH 1/4] Adapt config.mk for usage in spl/Makefile
Mike Frysinger
vapier at gentoo.org
Tue Jul 5 19:52:29 CEST 2011
On Tuesday, July 05, 2011 12:26:19 Daniel Schwierzeck wrote:
> +ifdef CONFIG_UBOOT_SPL_BUILD
> +# OBJTREE points to /spl/obj inside the original OBJTREE for SPL
> +sinclude $(OBJTREE)/../../include/autoconf.mk
> +sinclude $(OBJTREE)/../../include/config.mk
> +else
> sinclude $(OBJTREE)/include/autoconf.mk
> sinclude $(OBJTREE)/include/config.mk
> +endif
since all you're doing is adjusting all the paths to get at the top of the
tree, i wonder if you shouldnt just introduce a new variable for the top and
then base everything off that.
OBJTREETOP = $(OBJTREE)$(SUBTREE)
and then in the spl subdir, you set SUBTREE to "/../..". this would avoid
sprinkling of a specific CONFIG option throughout the build system.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110705/f79cf2eb/attachment.pgp
More information about the U-Boot
mailing list