If TARGET or EMBEDDED_TARGET == arm, set EMBEDDED variable,
authorgjb <gjb@FreeBSD.org>
Thu, 21 May 2015 22:11:57 +0000 (22:11 +0000)
committergjb <gjb@FreeBSD.org>
Thu, 21 May 2015 22:11:57 +0000 (22:11 +0000)
commit0641ba25df950bc3a16b29b60e97edca064f986c
treec7372c8c46d96c24f4b3322cafe5f3891d17dabb
parent71bbce5b72fc5ee56a48cfe161c22020b61eef4d
If TARGET or EMBEDDED_TARGET == arm, set EMBEDDED variable,
which helps control some of the arm-specific bits a bit more
cleanly (but not really 'clean').

If BOARDNAME is defined (as is in the WANDBOARD configuration
RE uses), do some magic to work with the KERNCONF and BOARDNAME
to rename the file, making it a bit more intuitive for the
consumer to determine which they need.

Yes, it is ugly, that is why there is a big warning at the top.
It is, however, still much cleaner than the now 474-line shell
script, and this Makefile produces the hierarchy needed without
much evil.

MFC after: 1 week
X-MFC-Note: needs all previous Makefile.mirror commits
Sponsored by: The FreeBSD Foundation
release/Makefile.mirrors