The environment variable "R" leaks into the Makefile,
if it is set the build will fail. eg
export R=12345
scripts/build libretro-picodrive
...
make: *** No rule to make target '12345pico/pico.o', needed by 'picodrive_libretro.so'. Stop.
Clear the variable before calling make to fix this issue
Signed-off-by: Matthias Reichl <hias@horus.com>
git rev-parse runs into the LE tree and sets GIT_VERSION to the
current LE githash - which is nonsense.
Just set GIT_VERSION to the (shortened) PKG_VERSION in the Makefile
to avoid this issue.
Signed-off-by: Matthias Reichl <hias@horus.com>
Packages referencing variables defined in setup_toolchain such as CC, CXX,
AR, CFLAGS, LDFLAGS, HOST_CC etc. etc. must only reference these variables in
pre_build()/pre_configure()/pre_make() etc. functions, as the variables will not
be available when the package is sourced, but will be available after the call
to setup_toolchain() from scripts/build.
Move variable assignments into configure_package() if the assignments
depend on variables initialised after the package is sourced, ie.
$PKG_BUILD, $PKG_SOURCE_NAME etc.