Skip to content
Browse files

ext: script changes

Importing MCUX drivers will copy fsl_power and fsl_reset to devices,
not drivers as before. Script will exclude 'freertos' drivers from SDK.

Signed-off-by: Andrei Gansari <>
  • Loading branch information...
agansari authored and MaureenHelm committed May 8, 2019
1 parent 425da7e commit 300f10cdb98466248f7af0fe4d172d0ba70399d4
Showing with 4 additions and 2 deletions.
  1. +4 −2 ext/hal/nxp/mcux/scripts/
@@ -37,12 +37,13 @@ def get_soc_family(device):
def get_files(src, pattern):
matches = []
nonmatches = []
always_exclude = "freertos"
if os.path.exists(src):
for filename in os.listdir(src):
path = os.path.join(src, filename)
if, filename):
elif not, filename):

return [matches, nonmatches]
@@ -68,7 +69,8 @@ def import_sdk(directory):
device_headers, _ = get_files(device_src, device_pattern)

drivers_src = os.path.join(directory, 'devices', device, 'drivers')
drivers_pattern = "fsl_clock|fsl_iomuxc"
drivers_pattern = "fsl_clock|fsl_iomuxc|fsl_power\.|fsl_reset"
#pattern fsl_power. has a full stop so other such as powerquad is not copied
[device_drivers, shared_drivers] = get_files(drivers_src, drivers_pattern)

xip_boot_src = os.path.join(directory, 'devices', device, 'xip')

0 comments on commit 300f10c

Please sign in to comment.
You can’t perform that action at this time.