GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)

This commit is contained in:
lai
2026-09-06 03:52:57 +08:00
commit b1928b41c0
21813 changed files with 4413081 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
SHELL := $(shell if [ -x "$${BASH}" ]; then echo $${BASH}; \
else if [ -x /bin/bash ]; then echo /bin/bash; \
else echo sh; fi; \
fi)
# $(call show_cmd,cmd,file)
define show_cmd
@(CMD=" "$1" "; echo "$${CMD:0:10}$2";)
endef
# $(call checkdir,dir)
define checkdir
@(test -d $1 || mkdir -p $1)
endef
# $(call upper,val)
define upper
$(strip $(shell echo $1 | tr a-z A-Z))
endef
# $(call is_enable,val,true-case,false-case)
define is_enabled
$(if $(filter y,$($(strip $(1)))),$(2),$(3))
endef