mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-06-08 12:48:00 +00:00
feat(kernel): 🎨 add the logo to the kernel as a png resource
This commit is contained in:
parent
33c284091d
commit
0187fa5b66
@ -10,14 +10,14 @@ define find-sources
|
|||||||
$(shell find ./ -type f -name '$1' $(shell echo $(foreach arch,$(filter-out $(OSARCH),$(AVAILABLE_ARCHS)), -not -path \"./arch/$(arch)/*\")) -print0 | xargs -0)
|
$(shell find ./ -type f -name '$1' $(shell echo $(foreach arch,$(filter-out $(OSARCH),$(AVAILABLE_ARCHS)), -not -path \"./arch/$(arch)/*\")) -print0 | xargs -0)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
BMP_SOURCES := $(call find-sources,*.bmp)
|
PNG_SOURCES := $(call find-sources,*.png)
|
||||||
PSF_SOURCES := $(call find-sources,*.psf)
|
PSF_SOURCES := $(call find-sources,*.psf)
|
||||||
S_SOURCES := $(call find-sources,*.S)
|
S_SOURCES := $(call find-sources,*.S)
|
||||||
s_SOURCES := $(call find-sources,*.s)
|
s_SOURCES := $(call find-sources,*.s)
|
||||||
C_SOURCES := $(call find-sources,*.c)
|
C_SOURCES := $(call find-sources,*.c)
|
||||||
CXX_SOURCES := $(call find-sources,*.cpp)
|
CXX_SOURCES := $(call find-sources,*.cpp)
|
||||||
|
|
||||||
OBJ = $(BMP_SOURCES:.bmp=.o) $(PSF_SOURCES:.psf=.o) $(s_SOURCES:.s=.o) $(S_SOURCES:.S=.o) $(C_SOURCES:.c=.o) $(CXX_SOURCES:.cpp=.o)
|
OBJ = $(PNG_SOURCES:.png=.o) $(PSF_SOURCES:.psf=.o) $(s_SOURCES:.s=.o) $(S_SOURCES:.S=.o) $(C_SOURCES:.c=.o) $(CXX_SOURCES:.cpp=.o)
|
||||||
STACK_USAGE_OBJ = $(C_SOURCES:.c=.su) $(CXX_SOURCES:.cpp=.su)
|
STACK_USAGE_OBJ = $(C_SOURCES:.c=.su) $(CXX_SOURCES:.cpp=.su)
|
||||||
GCNO_OBJ = $(C_SOURCES:.c=.gcno) $(CXX_SOURCES:.cpp=.gcno)
|
GCNO_OBJ = $(C_SOURCES:.c=.gcno) $(CXX_SOURCES:.cpp=.gcno)
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ else ifeq ($(OSARCH), aarch64)
|
|||||||
endif
|
endif
|
||||||
$(__CONF_NM) $@
|
$(__CONF_NM) $@
|
||||||
|
|
||||||
%.o: %.bmp
|
%.o: %.png
|
||||||
ifeq ($(OSARCH), amd64)
|
ifeq ($(OSARCH), amd64)
|
||||||
$(__CONF_OBJCOPY) -O elf64-x86-64 -I binary $< $@
|
$(__CONF_OBJCOPY) -O elf64-x86-64 -I binary $< $@
|
||||||
else ifeq ($(OSARCH), i386)
|
else ifeq ($(OSARCH), i386)
|
||||||
|
BIN
Kernel/files/logo.png
Normal file
BIN
Kernel/files/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.0 KiB |
Loading…
x
Reference in New Issue
Block a user