TL;DR most uses of lib/console.h -> lk/console_cmd.h Move the part that lets a piece of code somewhere in the system to define a console command from the actual lib/console api to start an instance of the console. Move in almost every place the user of the console command definition to the new header, lk/console_cmd.h which is always in the include path. Also remove most uses of testing for WITH_LIB_CONSOLE since you can almost always just safely define it and then let the linker remove it.
16 lines
202 B
Makefile
16 lines
202 B
Makefile
LOCAL_DIR := $(GET_LOCAL_DIR)
|
|
|
|
MODULE := $(LOCAL_DIR)
|
|
|
|
MODULE_SRCS += \
|
|
$(LOCAL_DIR)/loader.c \
|
|
|
|
|
|
MODULE_DEPS := \
|
|
lib/cksum \
|
|
lib/console \
|
|
lib/tftp \
|
|
lib/elf
|
|
|
|
include make/module.mk
|