Skip to content

arch: microblaze,nios2: unify dtb build test into one build and extend to microblaze & nios2#840

Merged
commodo merged 7 commits intomasterfrom
dts-single-build1
Jan 23, 2020
Merged

arch: microblaze,nios2: unify dtb build test into one build and extend to microblaze & nios2#840
commodo merged 7 commits intomasterfrom
dts-single-build1

Conversation

@commodo
Copy link
Copy Markdown
Contributor

@commodo commodo commented Jan 22, 2020

Some microblaze DTs were broken in master as well (i.e. kcu105_adrv9371x.dts & vcu118_quad_ad9081.dts).

This build change should help us catch things really early on regarding DTs in microblaze & nios2.
We don't build those too often, but we should at least make sure DTs build, since the build-effort (for the CI server) is not too big.

Signed-off-by: Alexandru Ardelean alexandru.ardelean@analog.com

We don't need to run multiple docker instances for different architectures
in order to build DTs from different archs.

We can group everything in a single build and run it.
This saves time, and allows us to extend the DT check to Microblaze &
NIOS2.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Building the device-trees requires too much stuff (i.e. arch-specific
compilers) to build device-trees.
This isn't really required.

Upstream kernel has some patches to reduce this dependency on the
arch-specific compiler. So, for the DTB build test we patch the kernel
build and take advantage of those changes, and we also avoid the risk of
breaking other stuff.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
The #include directive is a bit more flexible/permissive when including a
mix of DTs and C header files with dt-binding macros.

We did the same for ARM [Zynq] DTs.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Otherwise there are DTC parser errors in
* kcu105_adrv9371x.dts
* vcu118_quad_ad9081.dts

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
….dtsi

The only reason to do this, is to please the auto-check for device-tree
building.
DTS files are typically expected to be standalone, while dtsi files are
expected to be includes.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
The dtb building logic requires a Makefile in arch/$arch/boot/dts/Makefile,
even if it's just empty.

nios2 does not have one, so add one.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
@commodo commodo requested a review from a team January 22, 2020 14:22
@commodo commodo merged commit 58540cf into master Jan 23, 2020
@commodo commodo deleted the dts-single-build1 branch January 23, 2020 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants