Skip to content

Commit

Permalink
Starte matter
Browse files Browse the repository at this point in the history
  • Loading branch information
revk committed Aug 16, 2023
1 parent 4c6942f commit de6ecfc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,10 @@ menu "RevK"
help
Include extra settings in web config (call to revk_web_extra(httpd_req_t*))

config REVK_MATTER
bool "Build in Matter"
default n
help
Build in Matter

endmenu
5 changes: 5 additions & 0 deletions buildsuffix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ if(! $status) then
setenv SUFFIX "$SUFFIX-H2"
endif

grep -q CONFIG_REVK_MATTER=y "$SDKCONFIG"
if(! $status) then
setenv SUFFIX "$SUFFIX-MT"
endif

set bs=(`grep _BUILD_SUFFIX_ sdkconfig | sed 's/.*\(CONFIG_[A-Z0-9_]*_BUILD_SUFFIX_[A-Z0-9]*\).*/\1/'`)
foreach c ($bs)
grep -q "$c=y" "$SDKCONFIG"
Expand Down
6 changes: 6 additions & 0 deletions setbuildsuffix
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ if("$BUILDSUFFIX" =~ *-H2*) then

endif

if("$BUILDSUFFIX" =~ *-MT*) then
set add=($add CONFIG_REVK_MATTER)
else
set rem=($rem CONFIG_REVK_MATTER)
endif

set bs=(`grep _BUILD_SUFFIX_ sdkconfig | sed 's/.*\(CONFIG_[A-Z0-9_]*_BUILD_SUFFIX_[A-Z0-9]*\).*/\1/'`)
foreach c ($bs)
echo -n "$BUILDSUFFIX" | grep -q -- "-"`echo -n "$c" | sed 's/CONFIG_.*_BUILD_SUFFIX_\(.*\)/\1/'`
Expand Down

0 comments on commit de6ecfc

Please sign in to comment.