summaryrefslogtreecommitdiffstats
path: root/apps/init/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'apps/init/Makefile')
-rw-r--r--apps/init/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/init/Makefile b/apps/init/Makefile
index 642ca38..1834d0b 100644
--- a/apps/init/Makefile
+++ b/apps/init/Makefile
@@ -1,11 +1,12 @@
include $(CONFIG)
CFILES := $(wildcard *.c)
+CFILES += $(wildcard arch/$(TARGET_MACHINE)/*.c)
OFILES := $(patsubst %.c,%.o,$(CFILES))
OFILES += $(STATICLIBS)
CFLAGS := -ffreestanding -nostdlib -g
-LDFLAGS := -T $(TARGET_MACHINE).ld
+LDFLAGS := -T arch/$(TARGET_MACHINE)/link.ld
OCFLAGS := -O binary \
--set-section-flags .bss=alloc,load,contents