forked from DGNum/liminix
make outputs.directory useful for tftp-booting devices
basically, add some more symlinks to it
This commit is contained in:
parent
58c287ef6a
commit
e78028e58f
2 changed files with 8 additions and 6 deletions
12
default.nix
12
default.nix
|
@ -37,11 +37,13 @@ let
|
||||||
dd if=${uimage} of=$out/firmware.bin bs=128k conv=sync
|
dd if=${uimage} of=$out/firmware.bin bs=128k conv=sync
|
||||||
dd if=${squashfs} of=$out/firmware.bin bs=128k conv=sync,nocreat,notrunc oflag=append
|
dd if=${squashfs} of=$out/firmware.bin bs=128k conv=sync,nocreat,notrunc oflag=append
|
||||||
'';
|
'';
|
||||||
directory = nixpkgs.pkgs.runCommand "both-kinds" {} ''
|
directory = nixpkgs.pkgs.runCommand "liminix" {} ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cd $out
|
cd $out
|
||||||
ln -s ${squashfs} squashfs
|
ln -s ${squashfs} squashfs
|
||||||
ln -s ${kernel.vmlinux} vmlinux
|
ln -s ${kernel.vmlinux} vmlinux
|
||||||
|
ln -s ${manifest} manifest
|
||||||
|
ln -s ${uimage} uimage
|
||||||
'';
|
'';
|
||||||
# this exists so that you can run "nix-store -q --tree" on it and find
|
# this exists so that you can run "nix-store -q --tree" on it and find
|
||||||
# out what's in the image, which is nice if it's unexpectedly huge
|
# out what's in the image, which is nice if it's unexpectedly huge
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
# "KEYS" = "y";
|
# "KEYS" = "y";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs.default = "combined-image";
|
outputs.default = "directory";
|
||||||
boot = {
|
boot = {
|
||||||
loadAddress = "0x80060000";
|
loadAddress = "0x80060000";
|
||||||
entryPoint = "0x80060000";
|
entryPoint = "0x80060000";
|
||||||
|
|
Loading…
Reference in a new issue