For some reason the cross-compile build does not make any of the
binaries executable; portlint didn't seem to like me using ${CHMOD}
to fix this so I added @mode lines to pkg-plist. I don't like this
though because it makes it more work to update pkg-plist (i.e. you
can't just "make makeplist"). What I think would be cleaner would
be to fix permissions in post-build.
I need to create a version.sh script so that gcc and friends report
the version of crosstool-ng used:
ice 486 % xtensa-esp32-elf-gcc --version xtensa-esp32-elf-gcc (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 5.2.0 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
printf/CHMOD seemed like a good way.
pre-configure could be merged into do-configure and pre-build and
post-build into do-build but it made more sense to me to keep them
split out, especially when testing.
Is COMMENT ok? (Is COMMENT even required given the detailed pkg-descr?)
It was suggested I use BINARY_ALIAS to get gcc and python on PATH
but create-binary-alias happens slightly before do-configure and
gcc at least must exist when configure runs. I suspect adding
gcc:lang/gcc and python:lang/python to BUILD_DEPENDS will raise
flags but this seemed cleaner to me than patching or using
REINPLACE_CMD, especially considering this currently builds without
any patches. And the current default USES=gcc is gcc6, I don't want
the port to break if/when this changes. (I really believe USES=gcc
should provide something called gcc on the PATH, no matter whate
version it is..)
Proposed commit message:
This adds devel/xtensa-esp32-elf which builds the Espressif ESP32 toolchain for use with Arduino and FreeRTOS projects. Reviewed by: ? (mentor) Approved by: ? (mentor) Differential Revision: ?