-
Notifications
You must be signed in to change notification settings - Fork 951
ci: changed to generate only files that exist in targets #1780
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
Conversation
test-llvm11-go116 : make gen-device -j4 |
GO111MODULE=off $(GO) fmt ./src/device/nxp | ||
|
||
gen-device-sam: build/gen-device-svd | ||
./build/gen-device-svd -source=https://github.com/posborne/cmsis-svd/tree/master/data/Atmel lib/cmsis-svd/data/Atmel/ src/device/sam/ | ||
./build/gen-device-svd -source=https://github.com/posborne/cmsis-svd/tree/master/data/Atmel -only-used lib/cmsis-svd/data/Atmel/ src/device/sam/ | ||
GO111MODULE=off $(GO) fmt ./src/device/sam | ||
|
||
gen-device-sifive: build/gen-device-svd | ||
./build/gen-device-svd -source=https://github.com/posborne/cmsis-svd/tree/master/data/SiFive-Community -interrupts=software lib/cmsis-svd/data/SiFive-Community/ src/device/sifive/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
svd in sifive could not be targeted because of different rules for file names.
However, since there is only one file, I don't see any problem.
Some of the tests failed.
|
This is interesting, but I am actually considering something different: moving the generated files over to a separate repository (tinygo.org/device/stm32 etc) which can be used like a regular Go module. I see two reasons for only building the SVD files that exist in the target files:
What do you think? |
I think separate repo for the |
I also think it's a good idea to move it to a different repository. |
How do we put it in |
I think a separate repo is a good idea. For STM32 would it include the 'patched' SVDs, or would that still be a separate repo? |
This idea will make CI faster, so the sooner we start working on it, the better.
|
Keep in mind the package name would be |
My thinking is that because the device package is so fundamental it's not really an "extra" (x) package. That's why I said I don't think we need to generate the files in CI. The files are not very frequently updated and I think manually updating is good enough, similar to the stm32-svd repository. Doing it in CI may be complicated. (Historical sidenote: a long time ago I checked in all generated files for AVR, but later reverted this. This is why https://github.com/tinygo-org/tinygo/graphs/code-frequency has this huge spike. Doing this in a separate repo avoids this). |
The |
Closing due to age. Thanks to everyone! |
This PR will speed up
make gen-device
.Reduce the number of targets for SVD parsing by using the same buildTag that can be obtained from tinygo targets.
This will allow CI to run faster.
Also, the size of the release version will be a little smaller.
(Actually, I think it will be almost the same size because of compression)
Instead, if you want to use a new chip, you need to add the buildTag to targets/*.json first, and then run
make gen-device
again.after:
before: