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) TOPDIR := $(CURDIR)
DEFCONFIGS_DIR := $(CURDIR)/configs DEFCONFIGS_DIR := $(CURDIR)/configs
BUILD_DIRECTORY := $(CURDIR)/output/build
IMAGES_DIRECTORY := $(CURDIR)/output/images
default: all
nconfig: nconfig:
kconfig-nconf Config.in kconfig-nconf Config.in
@@ -64,4 +68,4 @@ list-defconfigs:
) )
$(call successmsg,Copy defconfig: $@ to .config is OK) $(call successmsg,Copy defconfig: $@ to .config is OK)
.PHONY: %_defconfig .PHONY: %_defconfig
+3 -1
View File
@@ -1,6 +1,8 @@
define CMD_CONFIGURE_BUSYBOX define CMD_CONFIGURE_BUSYBOX
$(call msg,configure_busybox) $(call msg,configure_busybox)
$(call warningmsg,configure_busybox) $(call warningmsg,configure_busybox)
$(call successmsg,configure_busybox)
$(call errmsg,configure_busybox)
endef endef
define CMD_BUILD_BUSYBOX define CMD_BUILD_BUSYBOX
@@ -9,4 +11,4 @@ endef
define CMD_INSTALL_BUSYBOX define CMD_INSTALL_BUSYBOX
$(call msg,install_busybox) $(call msg,install_busybox)
endef endef
+9 -8
View File
@@ -1,27 +1,28 @@
reset_color = \033[0m 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 green_background_color = \033[42m
high_intensity_yellow_background_color = \033[0;103m high_intensity_yellow_background_color = \033[103m
high_intensity_red_background_color = \033[0;101m high_intensity_red_background_color = \033[101m
define msg define msg
@echo -e "$(white_background_color) Info: $1 $(reset_color)" @echo -e "$(black_color)$(white_background_color) Info: $1 $(reset_color)"
endef endef
define errmsg 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 @exit 1
endef endef
define warningmsg 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 endef
define successmsg define successmsg
@echo -e "$(green_background_color) Success: $1 $(reset_color)" @echo -e "$(black_color)$(green_background_color) Success: $1 $(reset_color)"
endef endef
define copy_file define copy_file
@cp -v $1 $2 @cp -v $1 $2
endef endef