Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NXP] Adding pre/post-build process support for NXP RW61x platform #35448

Merged
merged 15 commits into from
Sep 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Restyled by autopep8
restyled-commits authored and dinabenamar committed Sep 19, 2024
commit de5aaa4e13825a51d2ecba75078451da070b9eeb
8 changes: 6 additions & 2 deletions scripts/build/builders/nxp.py
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@ def OsEnv(self):
else:
raise Exception('Unknown OS type: %r' % self)


class NxpBuildSystem(Enum):
GN = auto()
CMAKE = auto()
@@ -46,6 +47,7 @@ def BuildSystem(self):
else:
raise Exception('Unknown build system: %r' % self)


class NxpBoard(Enum):
K32W0 = auto()
K32W1 = auto()
@@ -86,10 +88,11 @@ def FolderName(self, os_env):
else:
raise Exception('Unknown board type: %r' % self)


class NxpBoardVariant(Enum):
RD = auto()
FRDM = auto()

def BoardVariantName(self, board):
if board == NxpBoard.RW61X:
if self == NxpBoardVariant.RD:
@@ -99,6 +102,7 @@ def BoardVariantName(self, board):
else:
raise Exception('Unkown board variant: %r' % self)


class NxpApp(Enum):
LIGHTING = auto()
CONTACT = auto()
@@ -266,7 +270,7 @@ def CmakeBuildFlags(self):
if self.has_sw_version_2:
flags.append("-DCONFIG_CHIP_DEVICE_SOFTWARE_VERSION=2")
flags.append("-DCONFIG_CHIP_DEVICE_SOFTWARE_VERSION_STRING=\"2.0\"")

if self.data_model_interface:
# NOTE: this is not supporting "check"
enabled = "y" if self.data_model_interface.lower() == "enabled" else "n"