I could be wrong, but I think I was told that would not change the include paths. There is another possible issue with this: the normal SDK includes tons of devices. If we were to take the SDK in its entirety it would be a pain to specify all the directories to be ignored. However, this would certainly work for now… assuming it works :-) Will give it a go.
> On Dec 16, 2016, at 2:30 PM, marko kiiskila <[email protected]> wrote: > > Hi Will, > >> On Dec 16, 2016, at 2:17 PM, will sanfilippo <[email protected]> wrote: > ... >> Currently, there is one device in there (the MK64F12). When I went to add a >> new device (the mkw41z) I ran into the following issue. There is a file >> called fsl_device_registers.h. This header file exists in both device >> directories. When I went to build the mkw41z it was including >> fsl_device_registers.h from MK64F12; not mkw41z. > > ... > >> >> I do not understand how the newt tool determines include paths from an sdk >> pkg.yml file so maybe there is way I can do this. Of course, I could create >> separate sdk packages but I do not think that is the right way to go. I >> could also move the needed code into hw/mcu/nxp/<DEVICE>/ but I do not think >> that is the best way to solve this, either. >> >> Any thoughts/suggestions on how to deal with this? > > How about pkg.ign_dirs to ignore subdirectories in the NXP SDK? > Making them conditional on the MCU type, like you tried to do with the > src_dirs.
