magic: Force the use of gcc for scriptic

Scriptic uses some directives that aren't available in clang, so assemble
scripts using gcc.

Signed-off-by: Sean Cross <xobs@kosagi.com>
This commit is contained in:
Sean Cross 2014-11-28 17:31:46 +08:00
parent a7ff5acb5d
commit 2e3dfee040
2 changed files with 3 additions and 3 deletions

View file

@ -16,8 +16,8 @@
vpath %.S . $(TOP)
$(BUILD)/%.o: %.S
$(ECHO) "CC $<"
$(Q)$(CC) $(CFLAGS) $(AFLAGS) -c -o $@ $<
$(ECHO) "AS $<"
$(Q)$(AS) $(AFLAGS) -c -o $@ $<
vpath %.s . $(TOP)
$(BUILD)/%.o: %.s

View file

@ -43,7 +43,7 @@ MKDIR = mkdir
SED = sed
PYTHON = python
AS = $(CROSS_COMPILE)as
AS = $(CROSS_COMPILE)gcc $(CFLAGS) -D__ASSEMBLY__
CC = $(CROSS_COMPILE)clang
LD = $(CROSS_COMPILE)ld
OBJCOPY = $(CROSS_COMPILE)objcopy