Merge pull request 'normal colors' (#1) from normal-colors into main

Reviewed-on: https://gitea.home.com:3000/TolaMironcenko/KConfig-examples/pulls/1
This commit was merged in pull request #1.
This commit is contained in:
wt
2025-02-13 12:57:37 +03:00
3 changed files with 17 additions and 10 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
TOPDIR := $(CURDIR)
DEFCONFIGS_DIR := $(CURDIR)/configs
BUILD_DIRECTORY := $(CURDIR)/output/build
IMAGES_DIRECTORY := $(CURDIR)/output/images
default: all
nconfig:
kconfig-nconf Config.in
@@ -64,4 +68,4 @@ list-defconfigs:
)
$(call successmsg,Copy defconfig: $@ to .config is OK)
.PHONY: %_defconfig
.PHONY: %_defconfig
+3 -1
View File
@@ -1,6 +1,8 @@
define CMD_CONFIGURE_BUSYBOX
$(call msg,configure_busybox)
$(call warningmsg,configure_busybox)
$(call successmsg,configure_busybox)
$(call errmsg,configure_busybox)
endef
define CMD_BUILD_BUSYBOX
@@ -9,4 +11,4 @@ endef
define CMD_INSTALL_BUSYBOX
$(call msg,install_busybox)
endef
endef
+9 -8
View File
@@ -1,27 +1,28 @@
reset_color = \033[0m
white_background_color = \033[0;47m
black_color = \033[0;30m
white_background_color = \033[47m
green_background_color = \033[42m
high_intensity_yellow_background_color = \033[0;103m
high_intensity_red_background_color = \033[0;101m
high_intensity_yellow_background_color = \033[103m
high_intensity_red_background_color = \033[101m
define msg
@echo -e "$(white_background_color) Info: $1 $(reset_color)"
@echo -e "$(black_color)$(white_background_color) Info: $1 $(reset_color)"
endef
define errmsg
@echo -e "$(high_intensity_red_background_color) Error: $1 $(reset_color)"
@echo -e "$(black_color)$(high_intensity_red_background_color) Error: $1 $(reset_color)"
@exit 1
endef
define warningmsg
@echo -e "$(high_intensity_yellow_background_color) Warning: $1 $(reset_color)"
@echo -e "$(black_color)$(high_intensity_yellow_background_color) Warning: $1 $(reset_color)"
endef
define successmsg
@echo -e "$(green_background_color) Success: $1 $(reset_color)"
@echo -e "$(black_color)$(green_background_color) Success: $1 $(reset_color)"
endef
define copy_file
@cp -v $1 $2
endef
endef