summary refs log tree commit diff
path: root/pkgs/build-support/kernel
Commit message (Collapse)AuthorAge
* treewide: stdenvNoCC.lib -> libBen Siraphob2021-01-27
|
* lib: Clean up how linux and gcc config is specifiedJohn Ericson2021-01-23
| | | | | | | Second attempt of 8929989614589ee3acd070a6409b2b9700c92d65; see that commit for details. This reverts commit 0bc275e63423456d6deb650e146120c39c1e0723.
* Revert "lib: Clean up how linux and gcc config is specified"Jonathan Ringer2021-01-22
| | | | | | | This is a stdenv-rebuild, and should not be merged into master This reverts commit 8929989614589ee3acd070a6409b2b9700c92d65.
* lib: Clean up how linux and gcc config is specifiedJohn Ericson2021-01-21
| | | | | | | | | | | | | | | | The `platform` field is pointless nesting: it's just stuff that happens to be defined together, and that should be an implementation detail. This instead makes `linux-kernel` and `gcc` top level fields in platform configs. They join `rustc` there [all are optional], which was put there and not in `platform` in anticipation of a change like this. `linux-kernel.arch` in particular also becomes `linuxArch`, to match the other `*Arch`es. The next step after is this to combine the *specific* machines from `lib.systems.platforms` with `lib.systems.examples`, keeping just the "multiplatform" ones for defaulting.
* nixos/modules-closure.sh: don't fail if firmware is missingDominik Xaver Hörl2021-01-11
| | | | | | | | Since fdf32154fc90698ef72ffa96ef39d920e1b9c951, we no longer allow missing modules in the initrd. Unfortunately since before this commit, the modules-closure script would also fail on missing firmware, which is a very common case (e.g. xhci-pci.ko.xz lists renesas_usb_fw.mem as dependent firmware). Fix this by only issuing a warning instead.
* make-initrd: various improvementsLinus Heckemann2020-12-17
| | | | | | | | | | | | | | | | | | - Generate a link to the initramfs file with an appropriate file extension, guessed based on the compressor by default - Use correct metadata in u-boot images if generated, up to now this was hardcoded to gzip and would silently generate an erroneous image if another compressor was specified - Document all the parameters - Improve cross-building compatibility, by allowing passing either a string as before, or a function taking a package set and returning the path to a compressor in the "compressor" argument of the function. - Support more compression algorithms - Place compressor executable function and arguments in passthru, for reuse when appending initramfses Co-Authored-By: Dominik Xaver Hörl <hoe.dom@gmx.de>
* makeInitrd: include dotfiles at rootLinus Heckemann2020-12-17
|
* makeInitrd: don't assume uImage => armLinus Heckemann2020-12-17
| | | | mips for example might use uImages too
* makeInitrd: make uinitrd behaviour optionalLinus Heckemann2020-12-17
|
* makeModulesClosuse: read modules from corrent kernel versionArthur Gautier2020-08-27
| | | | | | | Before this commit, the firmware information would be loaded from the currently running kernel, not from the kernel to be loaded. This commit ensures the correct kernel version and modules are read.
* makeModulesClosure: fixup firmware extractionArthur Gautier2020-08-27
| | | | | | After a recent upgrade of modinfo, its output is now incorrect for builtin modules. This commit filters out the output until a fix is made available upstream
* makeModulesClosure: handle builtin modules betterCrystalGamma2020-07-16
| | | | The previous code discarded entire dependency trees if the first entry in the dependency list compiled by `modprobe --show-depends` is a builtin and otherwise handled its output in a rather hackish way.
* modules-shrunk: preserve module priorities from buildMarkus S. Wamser2019-12-07
| | | | | | depmod looks for files modules.order and modules.builtin which are generated at kernel build time but were previously not passed to the modules-shrunk derivation
* makeInitrd: Use stdenvNoCCEelco Dolstra2019-10-11
|
* build-support/make-initrd: Don't derive derivation name from file nameArian van Putten2019-05-29
| | | | | | | | not all valid file names are valid derivation names. This can cause troubles when, for example, trying to place systemd template unit files, which contain an '@' in their name, in an initrd. Fixes #53987
* make-initrd: allow specifying nameLinus Heckemann2019-04-13
| | | | | Also moves the argument defaults out of all-packages.nix and into make-initrd itself.
* treewide: Remove usage of remaining redundant platform compatability stuffJohn Ericson2018-08-30
| | | | | Want to get this out of here for 18.09, so it can be deprecated thereafter.
* kernel: Fix running kernels *with* modulesaszlig2018-04-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull request #38470 added support for running/building kernels without modules. This got merged in 38e04bbf29fe3b6af26b3505a42ce5871aeac17d but unfortunately while this works perfectly on kernels without modules it also makes sure that *every* kernel gets no modules. So all of our VM tests fail since that merge with something like this: machine# loading module loop... machine# modprobe: FATAL: Module loop not found in directory /lib/modules/4.14.33 machine# loading module vfat... machine# modprobe: FATAL: Module vfat not found in directory /lib/modules/4.14.33 machine# loading module nls_cp437... machine# modprobe: FATAL: Module nls_cp437 not found in directory /lib/modules/4.14.33 machine# loading module nls_iso8859-1... machine# modprobe: FATAL: Module nls_iso8859-1 not found in directory /lib/modules/4.14.33 machine# loading module fuse... machine# modprobe: FATAL: Module fuse not found in directory /lib/modules/4.14.33 machine# loading module dm_mod... machine# modprobe: FATAL: Module dm_mod not found in directory /lib/modules/4.14.33 I shortly tested this against the "misc" VM test and the test is working again. In the long term (and I currently don't have time for this) it would be better to also have a VM test which tests a kernel without modules. Signed-off-by: aszlig <aszlig@nix.build> Cc: @roberth, @7c6f434c
* linux module handling: support kernels without modulesRobert Hensing2018-04-05
|
* Merge branch 'master' into stagingJan Malakhovski2018-03-10
|\ | | | | | | | | | | | | | | | | | | | | Resolved the following conflicts (by carefully applying patches from the both branches since the fork point): pkgs/development/libraries/epoxy/default.nix pkgs/development/libraries/gtk+/3.x.nix pkgs/development/python-modules/asgiref/default.nix pkgs/development/python-modules/daphne/default.nix pkgs/os-specific/linux/systemd/default.nix
| * makeInitrd: explain why we don't use closureInfoVladimír Čunát2018-03-05
| | | | | | | | /cc #36268.
| * Revert "makeInitrd: Use closureInfo"Eelco Dolstra2018-03-05
| | | | | | | | | | | | This reverts commit 776a5e6ebfacc6831527bc6c3c1a58ef2087c819. Fixes #36268.
| * makeInitrd: Use closureInfoEelco Dolstra2018-02-23
| |
* | makeModulesClosure: Fix cross-compilationShea Levy2018-02-28
|/
* makeModulesClosure: support firmwareNikolay Amiantov2018-02-16
| | | | Link it in stage 1.
* platforms.nix: Clean up more 'uboot' legacyTuomas Tynkkynen2017-11-05
| | | | | | For a while now, the only thing the 'uboot' attribute does is to tell whether to add ubootTools to kernel/initrd builds. That can be determined with platform.kernelTarget == "uImage" just as well.
* kernel, initrd: Remove legacy ubootChooserTuomas Tynkkynen2017-11-05
|
* pathsFromGraph: Remove obsolete printManifest featureEelco Dolstra2017-10-25
|
* make-initrd: Don't use stdenv.crossJohn Ericson2017-06-28
|
* make-initrd: create reproducible initrdsJoachim Fasting2016-12-20
| | | | | | | | | | | | To achieve reproducible results, `cpio` archive members are added in sorted order and inodes renumbered. The `cpio-clean.pl` script is made obsolete by setting mtimes via `touch` & using `cpio --reproducible`. Suggested by @dezgeg in https://github.com/NixOS/nixpkgs/pull/21273#issuecomment-268116605. Note that using `--reproducible` means that initial ramdisk creation now requires at least `cpio` version 2.12 (released in 2015).
* modules-closure: Use stdenvNoCCTuomas Tynkkynen2016-10-20
|
* makeModulesClosure: don't set pipefail as it's already set in $stdenv/setupNikolay Amiantov2016-08-14
|
* makeModulesClosure: Small cleanupEelco Dolstra2016-02-01
|
* make-initrd: store all files with root as ownerNikolay Amiantov2015-12-28
|
* makeInitrd: Support prepending other initrdsWilliam A. Kennington III2015-03-25
|
* Document paths-from-graph.pl somewhat.Alexander Kjeldaas2014-06-28
|
* Fix initrd breaking by recent repeatable-builds changesMathijs Kwik2014-04-12
| | | | | | | See the comments at https://github.com/NixOS/nixpkgs/commit/f67015cae49400eba539b9ec8b9920643581c77c for more information. Please note: this makes initrd unrepeatable again, but most people will prefer that above an unbootable system.
* Make initrd and the kernel builds repeatable.Alexander Kjeldaas2014-04-05
|
* makeModulesClosure: Use kmod instead of module-init-toolsEelco Dolstra2013-08-07
|
* Merge branch 'master' into stdenv-updatesShea Levy2013-02-21
|\ | | | | | | | | | | | | | | Conflicts: pkgs/applications/networking/browsers/chromium/default.nix pkgs/top-level/all-packages.nix Merge conflicts seemed trivial, but a look from viric and aszlig would be nice.
| * makeInitrd: Make the compressor configurableShea Levy2013-02-19
| |
* | Rename buildNativeInputs -> nativeBuildInputsEelco Dolstra2012-12-28
|/ | | | | Likewise for propagatedBuildNativeInputs, etc. "buildNativeInputs" sounds like an imperative rather than a noun phrase.
* * Be less verbose generating initrds.Eelco Dolstra2012-05-21
| | | | svn path=/nixpkgs/trunk/; revision=34199
* * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointlessEelco Dolstra2012-01-18
| | | | | | function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
* synchronize with trunkPeter Simons2011-11-02
|\ | | | | | | svn path=/nixpkgs/branches/stdenv-updates/; revision=30186
| * s|/nix/store|$NIX_STORE|Shea Levy2011-10-28
| | | | | | | | svn path=/nixpkgs/trunk/; revision=30094
* | Synchronized stdenv-updates branch with trunk.Peter Simons2011-10-06
|\| | | | | | | | | | | | | | | | | | | There were conflicting patches of pkgs/os-specific/linux/module-init-tools. Apparently, the expression was updated independently in both branches. I've resolved the conflict by preferring the patches from stdenv-updates, because those patches appeared to be more sophisticated, i.e. they build the manual, etc. svn path=/nixpkgs/branches/stdenv-updates/; revision=29680
| * D'ohShea Levy2011-10-02
| | | | | | | | svn path=/nixpkgs/trunk/; revision=29562
| * modprobe --show-depends now spits out 'builtin' if a requested module is, ↵Shea Levy2011-10-02
| | | | | | | | | | | | well, built-in svn path=/nixpkgs/trunk/; revision=29560
* | Merge from trunk up through r28790Shea Levy2011-08-24
|\| | | | | | | svn path=/nixpkgs/branches/stdenv-updates/; revision=28792