usr.bin: add usr.bin
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
1726663cab
commit
f47a4bfa2c
8 changed files with 87 additions and 11 deletions
|
|
@ -4,10 +4,10 @@
|
|||
#
|
||||
# Important to remember that this is run at the project-root-level,
|
||||
# all of it, as it is invoked with $(MAKE) -f
|
||||
ifneq ($(shell test -e .config && echo -n yes),yes)
|
||||
$(error Please type `make config` to generate a config)
|
||||
endif
|
||||
-include .config
|
||||
#ifneq ($(shell test -e .config && echo -n yes),yes)
|
||||
# $(error Please type `make config` to generate a config)
|
||||
#endif
|
||||
#-include .config
|
||||
export
|
||||
|
||||
obj-y :=
|
||||
|
|
@ -22,7 +22,11 @@ real-objs-y := $(addprefix $(obj)/, $(filter-out %/, $(obj-y)))
|
|||
subdir-objs-y := $(foreach d,$(subdir-y),$(obj)/$(d)/built-in.o)
|
||||
deps := $(real-objs-y:.o=.d)
|
||||
|
||||
ifeq ($(obj),.)
|
||||
_all: $(subdir-objs-y)
|
||||
else
|
||||
_all: $(obj)/built-in.o
|
||||
endif
|
||||
|
||||
$(obj)/%.o: $(obj)/%.c
|
||||
$(Q)echo " CC $@"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
# Makefile stuff for all the booting and bootloader related stuff
|
||||
#
|
||||
INITRAMFS := initramfs.cpio
|
||||
|
||||
$(IMG): limine/limine $(KERNEL)
|
||||
rm -rf $(IMG)
|
||||
|
|
@ -27,7 +26,7 @@ $(IMG): limine/limine $(KERNEL)
|
|||
limine/limine:
|
||||
rm -rf limine
|
||||
git clone https://codeberg.org/Limine/Limine.git limine --branch=$(LIMINE_VERSION)-binary --depth=1
|
||||
$(MAKE) -C limine \
|
||||
$(MAKE) --no-print-directory -C limine \
|
||||
CC="$(HOST_CC)" \
|
||||
CFLAGS="$(HOST_CFLAGS)" \
|
||||
CPPFLAGS="$(HOST_CPPFLAGS)" \
|
||||
|
|
@ -68,3 +67,4 @@ edk2-ovmf:
|
|||
distclean:
|
||||
make clean
|
||||
rm -rf limine
|
||||
rm -rf $(INITRAMFS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue