Skip to content

Commit

Permalink
remove crosspkgs and let crossSystem compile kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
fsagbuya committed Mar 26, 2024
1 parent 081b854 commit f142c63
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions zynq_image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,7 @@

with lib;
let
crosspkgs = import pkgs.path {
system = "x86_64-linux";
crossSystem = {
system = "armv7l-linux";
linux-kernel = {
name = "zynq";
baseConfig = "multi_v7_defconfig";
target = "uImage";
installTarget = "uImage";
autoModules = false;
DTB = true;
makeFlags = [ "LOADADDR=0x8000" ];
};
};
};
customKernel = (crosspkgs.linux.override {
customKernel = (pkgs.linux.override {
extraConfig = ''
OVERLAY_FS y
MEDIA_SUPPORT n
Expand All @@ -35,11 +20,13 @@ let
'';
}).overrideAttrs (oa: {
postInstall = ''
cp arch/arm/boot/uImage $out
if [ -e arch/arm/boot/uImage ]; then
cp arch/arm/boot/uImage $out
fi
${oa.postInstall}
'';
});
customKernelPackages = crosspkgs.linuxPackagesFor customKernel;
customKernelPackages = pkgs.linuxPackagesFor customKernel;
in {
imports = [ ./arm32-cross-fixes.nix ];
boot.kernelPackages = customKernelPackages;
Expand Down

0 comments on commit f142c63

Please sign in to comment.