1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/lib
John Ericson b9acfb4ecf treewide: isArm -> isAarch32
Following legacy packing conventions, `isArm` was defined just for
32-bit ARM instruction set. This is confusing to non packagers though,
because Aarch64 is an ARM instruction set.

The official ARM overview for ARMv8[1] is surprisingly not confusing,
given the overall state of affairs for ARM naming conventions, and
offers us a solution. It divides the nomenclature into three levels:

```
ISA:             ARMv8   {-A, -R, -M}
                 /    \
Mode:     Aarch32     Aarch64
             |         /   \
Encoding:   A64      A32   T32
```

At the top is the overall v8 instruction set archicture. Second are the
two modes, defined by bitwidth but differing in other semantics too, and
buttom are the encodings, (hopefully?) isomorphic if they encode the
same mode.

The 32 bit encodings are mostly backwards compatible with previous
non-Thumb and Thumb encodings, and if so we can pun the mode names to
instead mean "sets of compatable or isomorphic encodings", and then
voilà we have nice names for 32-bit and 64-bit arm instruction sets
which do not use the word ARM so as to not confused either laymen or
experienced ARM packages.

[1]: https://developer.arm.com/products/architecture/a-profile

(cherry picked from commit ba52ae5048)
2018-04-25 15:50:41 -04:00
..
systems treewide: isArm -> isAarch32 2018-04-25 15:50:41 -04:00
tests lib, treewide: Add missing MIPS arches, and fix existing usage 2018-02-23 20:43:42 -05:00
attrsets.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
composable-derivation.nix lib: trivial spelling fixes 2017-04-19 19:37:55 -05:00
customisation.nix lib.addPassthru: removed as scheduled 2018-03-03 17:57:38 +01:00
debug.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
default.nix lib, stdenv: Check meta.platforms against host platform and be open world 2018-03-15 00:44:34 -04:00
deprecated.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
fetchers.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
filesystem.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
fixed-points.nix Revert "Merge branch 'improved-make-overridable' of git://github.com/ElvishJerricco/nixpkgs" 2017-09-29 09:11:26 -04:00
generators.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
licenses.nix z88dk: init at unstable-2018-02-20 (#35244) 2018-02-20 22:06:25 +00:00
lists.nix Merge pull request #33898 from oxij/nixos/related-packages-v5 2018-02-09 20:36:27 -05:00
maintainers-list.nix maintainers: remove null fields 2018-03-05 11:14:35 -05:00
meta.nix lib: Factor in tiny bit of meta.platform checking 2018-03-19 19:29:16 -04:00
minver.nix Nix minimal version: 1.10 -> 1.11 2017-08-22 13:28:55 +03:00
modules.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
options.nix lib: export option location in optionAttrSetToDocList 2018-02-11 22:04:09 +00:00
sources.nix callCabal2nix: Fix calling with a path in the store. 2018-01-11 10:17:56 -05:00
strings-with-deps.nix Convert libs to a fixed-point 2017-09-16 21:36:43 -04:00
strings.nix nixpkgs.lib: Add escapeNixString 2017-12-02 13:28:00 -05:00
trivial.nix lib: implement compare, splitByAndCompare, and compareLists 2018-02-09 19:51:05 +00:00
types.nix lib/types: add types.nonEmptyListOf 2018-02-08 10:01:49 +01:00
versions.nix lib: add versions library 2018-03-04 06:28:34 -08:00