Commit Graph

39 Commits

Author SHA1 Message Date
Artturi
2fd2dc90b0
Merge pull request #237241 from alyssais/dtc-cross 2023-06-20 16:32:39 +03:00
Alyssa Ross
b949778bed
dtc: fix cross
Now takes into account that stdenv always disables tests when cross
compiling.

Link: https://github.com/dgibson/dtc/pull/103#pullrequestreview-1473442177
Fixes: 219b397071 ("dtc: avoid building tests in case doCheck is disabled")
2023-06-20 09:13:38 +00:00
Nick Cao
df55edeeb3
Merge pull request #237100 from amjoseph-nixpkgs/pr/dtc/fixcross
dtc: fix cross
2023-06-12 23:02:51 -06:00
Adam Joseph
bb6069ec20 dtc: fix overrides: use finalAttrs, not rec
Prior to this commit, dtc was accessing its own derivation
attributes via `rec`.  This means that

```
overrideAttrs (_: { doCheck = ..; })
```

will produce inconsistent behavior, with part of the derivation
seeing the old value and part seeing the new value.

finalAttrs is the preferred way to do this.  Let's switch to that.
2023-06-10 12:44:29 -07:00
Adam Joseph
4cccbcd768 dtc: fix cross
Cross compilation of dtc was broken by the build system change in
280160bd1d.

Currently dtc's configury fails for cross builds unless you disable
the tests at configurePhase-time.  Simply not running the test
target is insufficient.
2023-06-10 12:40:40 -07:00
Otavio Salvador
54216d1f5a dtc: remove postFixup as meson installs the dylib properly
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-06-01 12:15:47 -03:00
Otavio Salvador
219b397071 dtc: avoid building tests in case doCheck is disabled
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-06-01 10:34:22 -03:00
Otavio Salvador
31b198ad6f dtc: fix linker options so it also works in Darwin
We dropped two simple patches which were changing the version in
meson.build as the "dtc: Fix linker options so it also works in Darwin"
is bigger.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-06-01 10:34:08 -03:00
Otavio Salvador
280160bd1d dtc: 1.6.1 -> 1.7.0
The package now uses Meson and Ninja as the build system.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-05-29 19:03:57 +00:00
Jiajie Chen
23d21ce9c9 dtc: fix dylib name on darwin
Prior to this commit, the install name of dylib is not absolute.
2022-08-17 15:15:46 +08:00
Tero Tervala
7f3cdfd2ba dtc: fix static building 2022-06-30 07:39:30 +00:00
github-actions[bot]
1ff1108cce
Merge master into staging-next 2022-06-11 12:01:21 +00:00
Alyssa Ross
690125bd0a
treewide: update git.kernel.org/cgit homepage URLs
These are now redirects, and no longer git clone-able despite looking
like git repo URLs.  I've updated them to the new locations.
2022-06-10 19:46:39 +00:00
Sandro Jäckel
548ae98b58
dtc: fix python 3.10 compatibility 2022-06-06 11:46:16 -07:00
Rouven Czerwinski
22371fd67f dtc: 1.6.0 -> 1.6.1
New upstream release:
Changes since v1.6.0 include:
 * A number of bugfixes
 * Fix many warnings with -Wsign-compare
 * Add compilation with meson (not used by default so far)
 * Yet another revamp of how we handle unaligned accesses
 * Added a number of extra checks for common tree errors
   * Checks for interrupt providers
   * i2c reg properties
   * Tighten checking of gpio properties
 * Reduce dependencies when building libfdt only
 * Allow libfdt.h header to be used from C++ more easily
 * Accept .dtbo extension for overlays
 * Update valid node and property characters to match current devicetree spec
 * Add several checks for root node sanity in fdt_check_full()
 * Somewhat more robust type labelling for the benefit of yaml output
2021-08-23 12:45:14 +02:00
Frederik Rietdijk
6882ab13fc dtc: python is only used when called from python-packages.nix 2021-07-27 20:37:04 +02:00
Philipp Bartsch
8e8f611d6f dtc: disable checks for darwin
The tests fail on darwin aarch64.

https://github.com/NixOS/nixpkgs/pull/118700#issuecomment-885892436

Reported-by: Jiuyang Liu (sequencer)
2021-07-24 17:47:45 +02:00
tnias
01cf5e4d68
dtc: add yaml support and enable tests (#118700) 2021-04-09 02:02:36 +02:00
Frederik Rietdijk
7012ab1b54 dtc: don't require python 2021-03-25 12:30:44 +01:00
Jonathan Ringer
9bb3fccb5b treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix
continuation of #109595

pkgconfig was aliased in 2018, however, it remained in
all-packages.nix due to its wide usage. This cleans
up the remaining references to pkgs.pkgsconfig and
moves the entry to aliases.nix.

python3Packages.pkgconfig remained unchanged because
it's the canonical name of the upstream package
on pypi.
2021-01-19 01:16:25 -08:00
Alyssa Ross
f20b89d1d4 dtc,python.pkgs.libfdt: drop python buildInput
This doesn't seem to be necessary to build the library with
strictDeps = true, or when cross-compiling.
2020-10-25 10:55:52 -04:00
Tom Hall
511822c158 dtc: 1.5.1 -> 1.6.0 2020-05-25 15:38:07 +01:00
Michael Reilly
84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Jan Tojnar
23ec74b1b2
dtc: disable Python support by default
It does not seem to be used by anything and we want to get rid of Python 2 from closure.
2019-12-29 11:21:07 +01:00
Ben Wolsieffer
53489b496e dtc: fix Python support 2019-09-22 13:03:40 +02:00
Matthew Bauer
1bc7fae62d
Merge pull request #68889 from nspin/pr/various-cross-2
Various cross-compilation fixes
2019-09-17 19:35:44 -04:00
Nick Spinale
35f39ac48c dtc: make python bindings optional
dtc's build system does not support cross-compilation of its
swig-generated python bindings.
2019-09-17 23:09:55 +00:00
koral
d26fe36940 dtc: 1.5.0 -> 1.5.1 2019-09-15 15:30:08 +02:00
Bastian Köcher
e6d4f0a4a9 dtc: 1.4.7 -> 1.5.0 2019-03-15 09:39:30 +01:00
Ben Wolsieffer
414c42a697 ubootRock64, ubootRockPro64: use dtc 1.4.5 2019-01-18 21:00:58 -05:00
Ben Wolsieffer
b1ab88bb24 dtc: 1.4.5 -> 1.4.7 2018-12-21 00:16:14 -05:00
Frederik Rietdijk
0fe236dbf2 dtc: fetch over https 2018-03-13 14:26:18 +01:00
Tuomas Tynkkynen
bd47e17234 dtc: 1.4.4 -> 1.4.5 2017-11-18 13:57:12 +02:00
Tuomas Tynkkynen
caccd11442 dtc: 1.4.2 -> 1.4.4 2017-04-09 21:48:25 +03:00
Tuomas Tynkkynen
e1d05ffb6a dtc: 1.4.1 -> 1.4.2 2016-09-17 00:54:07 +03:00
Tuomas Tynkkynen
bac26e08db Fix lots of fetchgit hashes (fallout from #15469) 2016-06-03 17:17:08 +03:00
Tuomas Tynkkynen
37fbf0e24f dtc: Builds on Darwin 2016-02-03 04:46:09 +02:00
Tuomas Tynkkynen
d8b4cff390 dtc: Fix cross compilation
Flex and Bison are need to be executable by the build system.
2015-06-30 10:33:25 +03:00
Tuomas Tynkkynen
b0ad2da4ed dtc: init at 1.4.1
Compiling U-Boot for the Jetson TK1 board requires this.
2015-06-28 22:40:35 +03:00