Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removal of Unused ARCHCCVERSION and ARCHCCMAJOR

...

See PR-1396, git commit #d32e9c38dfb0659a7f3c0cf586ba1584cd7eb3d6 in the main NuttX repository. See also the preceding commit, 6abd03d53ff9164fb17ea4aca701a49fbbf751c0.

Removal of Unused ARCHCCVERSION and ARCHCCMAJOR

The ARCHCCVERSION and ARCHCCMAJOR variables are unused. Historically they were defined in many boards' scripts/Make.defs. These were removed from all boards in the NuttX repository, but if you are building NuttX for a custom board, you may want to remove this unnecessary boilerplate.

In your custom board's scripts/Make.defs file, remove lines like these:


Code Block
languagetext
ARCHCCVERSION = ${shell $(CC) -v 2>&1 | sed -n '/^gcc version/p' | sed -e 's/^gcc version \([0-9\.]\)/\1/g' -e 's/[-\ ].*//g' -e '1q'}
ARCHCCMAJOR = ${shell echo $(ARCHCCVERSION) | cut -d'.' -f1}

See PR-1344, git commit #f5311de6b42466ab5c6ef299dab0ecc417131bbe in the main NuttX repository.

Custom Boards Don't Need HOSTCC and HOSTCFLAGS Definitions

...