aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2018-03-30 11:39:33 -0400
committerClyne Sullivan <clyne@bitgloo.com>2018-03-30 11:39:33 -0400
commit769b3dbcea116b83f913a6aae00b4e43633be82c (patch)
treec9590a05c17cb7ca115c4e1053e4366edecff7a7 /Makefile
parent234beaee5de14a601af3eef97f291cddfe5d1b80 (diff)
new initrd format, 2nd layer for keypad
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b3acc2a..d672a52 100644
--- a/Makefile
+++ b/Makefile
@@ -21,7 +21,7 @@
CROSS = arm-none-eabi-
CC = gcc
AS = as
-AR = ar
+AR = tools/rba
OBJCOPY = objcopy
STRIP = strip
@@ -46,11 +46,10 @@ INITRD = initrd.img
all: $(OUT)
-#@$(CROSS)$(STRIP) --only-keep-debug $(OUT)
$(OUT): $(OFILES) initrd/init libinterp.a
@echo " INITRD " $(INITRD)
@rm -f $(INITRD)
- @$(CROSS)$(AR) r $(INITRD) initrd/*
+ @$(AR) $(INITRD) initrd/*
@$(CROSS)$(OBJCOPY) -B arm -I binary -O elf32-littlearm $(INITRD) out/initrd.img.o
@echo " LINK " $(OUT)
@$(CROSS)$(CC) $(CFLAGS) $(LFLAGS) out/*.o -o $(OUT) -L. -linterp -lm