tools/Unix.mk: Make sed compatible with macOS

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Co-authored-by: chao an <anchao@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-02-12 16:32:30 +08:00 committed by GUIDINGLI
parent 6b61b5ed15
commit e334786f81

View file

@ -629,7 +629,8 @@ else
KCONFIG_GCONFIG = ${KCONFIG_NCONFIG}
KCONFIG_SAVEDEFCONFIG = savedefconfig --out
define kconfig_tweak_disable
sed -i '/$2/d' $1
$(Q) sed -i'.orig' '/$2/d' $1
$(Q) rm -f $1.orig
endef
endif