update 22.03.4
This commit is contained in:
12
README.md
12
README.md
@@ -1,4 +1,4 @@
|
||||
# NOIBW - Nix-Openwrt-ImageBuilder-Wrapper
|
||||
# NOIBW - Nix-Openwrt-ImageBuilder-Wrapper
|
||||
|
||||
provide a nix shell, for creating openwrt images by the image builder in declarative way.
|
||||
|
||||
@@ -24,32 +24,37 @@ This file setup the nix shell with all necessary dependencies and shell environm
|
||||
### Commands
|
||||
|
||||
loadBuilder -> load device specific image builder and manifest ("default") packages list:
|
||||
|
||||
```sh
|
||||
# nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="<target_name>"; arch="<arch_name"; version="<openwrt_release_version>"; profile="<profile_name>"; packages=[<list_of_user_packages>];}' --pure --run loadBuilder
|
||||
nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="brcm2708"; arch="bcm2708"; version="19.07.4"; profile="rpi"; packages=["luci-ssl"];}' --pure --run loadBuilder
|
||||
```
|
||||
|
||||
makeImage -> create image by image builder
|
||||
|
||||
```sh
|
||||
# nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="<target_name>"; arch="<arch_name"; version="<openwrt_release_version>"; profile="<profile_name>"; packages=[<list_of_user_packages>];}' --pure --run makeCmakeImageleanImage
|
||||
nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="brcm2708"; arch="bcm2708"; version="19.07.4"; profile="rpi"; packages=["luci-ssl"];}' --pure --run makeImage
|
||||
```
|
||||
|
||||
removeBuilder -> remove image builder
|
||||
|
||||
```sh
|
||||
# nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="<target_name>"; arch="<arch_name"; version="<openwrt_release_version>"; profile="<profile_name>"; packages=[<list_of_user_packages>];}' --pure --run removeBuilder
|
||||
nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="brcm2708"; arch="bcm2708"; version="19.07.4"; profile="rpi"; packages=["luci-ssl"];}' --pure --run removeBuilder
|
||||
```
|
||||
|
||||
makeCleanImage -> remove old image builder, load new image builder and create image
|
||||
|
||||
```sh
|
||||
# nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="<target_name>"; arch="<arch_name"; version="<openwrt_release_version>"; profile="<profile_name>"; packages=[<list_of_user_packages>];}' --pure --run makeCleanImage
|
||||
nix-shell --expr 'with import <nixpkgs> {}; callPackage ./buildOpenwrt.nix {target="brcm2708"; arch="bcm2708"; version="19.07.4"; profile="rpi"; packages=["luci-ssl"];}' --pure --run makeCleanImage
|
||||
```
|
||||
|
||||
created image can be found:
|
||||
|
||||
```sh
|
||||
${workingFolder}/openwrt-imagebuilder-${version}-${target}-$arch}.Linux-x86_64/bin/targets/${target}/${arch}
|
||||
${workingFolder}/openwrt-imagebuilder-${version}-${target}-${arch}.Linux-x86_64/bin/targets/${target}/${arch}
|
||||
```
|
||||
|
||||
## Device File
|
||||
@@ -68,6 +73,7 @@ pkgs.callPackage <path_to_repo>/buildOpenwrt.nix {
|
||||
```
|
||||
|
||||
pi example
|
||||
|
||||
```nix
|
||||
{ pkgs ? import <nixpkgs> {}}:
|
||||
pkgs.callPackage ../buildOpenwrt.nix {
|
||||
@@ -90,4 +96,4 @@ build an image with:
|
||||
nix-shell devices/pi-img.nix --run makeCleanImage
|
||||
```
|
||||
|
||||
For more example see `devices` folder.
|
||||
For more example see `devices` folder.
|
||||
|
||||
Reference in New Issue
Block a user