ast27x0: Fix Makefile to unconditionally set CC to support correct cross-compilation

The Makefile previously used CC ?= $(CROSS_COMPILE)gcc, but this is ineffective
because make always sets the CC variable by default. As a result, the intended
default for CC was ignored and cross-compilation could silently fail or misbehave.

This patch removes the conditional assignment operator ?= for CC, OBJCOPY, and OBJDUMP,
making them unconditionally defined from the CROSS_COMPILE prefix as done in other
vbootrom subdirectories. This simplifies usage and makes the build work without
requiring users to manually specify CC on the command line.

Now users can simply run make without needing to export or override variables.

Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
1 file changed
tree: ba4da5563b80867b199f62732289e6686507df17
  1. ast27x0/
  2. lib/
  3. npcm7xx/
  4. npcm8xx/
  5. .gitignore
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

Virtual Boot ROM for NPCM and ASPEED SoCs

This repository contains simple Boot ROMs for Nuvoton and ASPEED based BMC images that are intended to be used by QEMU when emulating NPCM and ASPEED based machines.

Subdirectories

npcm7xx: This subdir contains Boot ROM for NPCM7XX, a 32-bit ARM image. npcm8xx: This subdir contains Boot ROM for NPCM8XX, a 64-bit ARM image. ast27x0: This subdir contains Boot ROM for AST27X0, a 64-bit ARM image.