forked from DGNum/liminix
write combined-image into a directory not $out directly
this makes the tftp workflow a bit easier
This commit is contained in:
parent
e7987c9520
commit
c70d556f44
1 changed files with 3 additions and 3 deletions
|
@ -26,10 +26,10 @@ let
|
||||||
combined-image = nixpkgs.pkgs.runCommand "firmware.bin" {
|
combined-image = nixpkgs.pkgs.runCommand "firmware.bin" {
|
||||||
nativeBuildInputs = [ nixpkgs.buildPackages.ubootTools ];
|
nativeBuildInputs = [ nixpkgs.buildPackages.ubootTools ];
|
||||||
} ''
|
} ''
|
||||||
dd if=${uimage} of=$out bs=128k conv=sync
|
mkdir $out
|
||||||
dd if=${squashfs} of=$out bs=128k conv=sync,nocreat,notrunc oflag=append
|
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
|
||||||
'';
|
'';
|
||||||
|
|
||||||
directory = nixpkgs.pkgs.runCommand "both-kinds" {} ''
|
directory = nixpkgs.pkgs.runCommand "both-kinds" {} ''
|
||||||
mkdir $out
|
mkdir $out
|
||||||
cd $out
|
cd $out
|
||||||
|
|
Loading…
Reference in a new issue