mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 18:56:10 +08:00
tools: Fix BASE_DEFCONFIG generation
This commit is contained in:
committed by
Xiang Xiao
parent
f36f2d6a60
commit
22e777cf08
+1
-1
@@ -250,7 +250,7 @@ tools/mkconfig$(HOSTEXEEXT):
|
||||
include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig$(HOSTEXEEXT)
|
||||
$(Q) grep -v "CONFIG_BASE_DEFCONFIG" "$(TOPDIR)/.config" > "$(TOPDIR)/.config.tmp"
|
||||
$(Q) if ! cmp -s "$(TOPDIR)/.config.tmp" "$(TOPDIR)/.config.orig" ; then \
|
||||
sed -i.bak "/CONFIG_BASE_DEFCONFIG/s/\"$$/-dirty\"/" "$(TOPDIR)/.config"; \
|
||||
sed -i.bak -e "/CONFIG_BASE_DEFCONFIG/ { /-dirty/! s/\"$$/-dirty\"/; }" "$(TOPDIR)/.config" ; \
|
||||
else \
|
||||
sed -i.bak "s/-dirty//g" "$(TOPDIR)/.config"; \
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user