Makefile: refactor subdirectory makefiles
This commit is contained in:
@ -1,5 +0,0 @@
|
||||
DEVICES_PREFIX = devices
|
||||
|
||||
KOBJS += $(DEVICES_PREFIX)/pl011.o
|
||||
KOBJS += $(DEVICES_PREFIX)/pl110.o
|
||||
KOBJS += $(DEVICES_PREFIX)/pl111.o
|
12
devices/kernel.mk
Normal file
12
devices/kernel.mk
Normal file
@ -0,0 +1,12 @@
|
||||
DIRNAME := devices
|
||||
SUBDIRS :=
|
||||
|
||||
include $(BASEDIR)/header.mk
|
||||
|
||||
OBJS_$(d) := $(d)/pl011.o \
|
||||
$(d)/pl110.o \
|
||||
$(d)/pl111.o
|
||||
|
||||
KOBJS += $(OBJS_$(d))
|
||||
|
||||
include $(BASEDIR)/footer.mk
|
Reference in New Issue
Block a user