Commit Graph

49 Commits

Author SHA1 Message Date
Thomas Nixon d28a2c402c generate-hashes: simplify target/subtarget parsing
The openwrt download site has secret json files like these with the
list of targets and subtargets:

https://downloads.openwrt.org/releases/21.02.3/targets/?json-targets

Use these rather than scanning the git repository, to avoid the two
getting out of sync.
2022-06-08 00:25:46 +01:00
Astro 30d056862d
Merge pull request #6 from tomjnixon/only_download_required_packages
Only download required packages
2022-06-07 16:36:50 +02:00
Astro 68872c8074
Merge pull request #7 from tomjnixon/fix_files_mode
builder: copy files to avoid making etc read-only
2022-06-07 12:03:51 +02:00
Thomas Nixon 051b9df050 builder: copy files to avoid making etc read-only
This caused lines like this to appear in the logs:

.../sed: couldn't open temporary file .../etc/sed6fJsn9: Permission denied

These errors caused some changes to /etc/group to be missed.
2022-06-06 01:04:39 +01:00
Thomas Nixon b4379cf745 only download packages which might be required
Package files are parsed to determine the dependency package
dependencies, and these are used to find the packages to download which
might be required.

This doesn't implement every detail of the opkg dependency resolution,
but instead tries to find all packages which might be required.
In particular, no attempt is made to resolve dependencies on virtual
packages (which may be provided by multiple packages) to a single
package (all providing packages are downloaded).
2022-06-05 22:28:50 +01:00
Thomas Nixon 8746d406a4 files: switch from lib to inherit
this tripped me up and is generally not recommended
2022-06-05 20:53:13 +01:00
Astro f682ef9c0f Update hashes 2022-06-01 18:47:04 +02:00
Astro eeca2576db Revert "builder: add gccWrapper for openwrt < 19"
This reverts commit 372494478d.
2022-06-01 18:24:03 +02:00
Astro 0bafd92406 Update hashes 2022-06-01 00:47:37 +02:00
Astro 07325e548b
Merge pull request #3 from IowaCityMesh/main
Update hashes
2022-05-31 21:47:30 +02:00
Astro eb8695232b
Merge pull request #5 from IowaCityMesh/hydra-build-products
lib.build: generate hydra-build-products
2022-05-31 21:46:16 +02:00
Ehmry - 5bb153d7b0 lib.build: generate hydra-build-products 2022-05-29 09:38:04 -05:00
Ehmry - 381746799c generate-hashes: log fetch or parse errors 2022-05-28 09:41:07 -05:00
Ehmry - df58f7573c Update hashes 2022-05-28 09:41:03 -05:00
Astro 4061b83f32 README: fix example syntax 2022-05-09 15:49:23 +02:00
Astro c57be33430 README: add documentation
Fixes Github issue #1
2022-05-09 15:44:33 +02:00
Astro 372494478d builder: add gccWrapper for openwrt < 19 2022-05-09 15:43:59 +02:00
Astro 34afaff593 builder: add hack for openwrt < 19 2022-04-30 01:31:26 +02:00
Astro 658c02ecfa builder: pass packagesArch 2022-04-30 01:31:10 +02:00
Astro 2dc8656812 files: let sanitizeFilename use baseNameOf 2022-04-29 21:33:58 +02:00
Astro b955d0a7ac files: sanitizeFilename 2022-04-29 21:30:44 +02:00
Astro 2717976254 files: allow explicitly specifying packagesArch 2022-04-29 21:29:29 +02:00
Astro 2087eb5f0c generate-hashes: add all other feeds except luci 2022-04-29 00:29:44 +02:00
Astro 614e4248c3 example.nix: use flake interface when building from flake 2022-04-29 00:03:47 +02:00
Astro 523cb2f511 flake.nix: remove unused build arg openwrt 2022-04-29 00:03:27 +02:00
Astro 16cbe77aa0 profiles: split identifyProfiles into identifyProfile 2022-04-28 23:59:17 +02:00
Astro fd97d941cd flake.nix: fix lib.{build,profiles} args 2022-04-28 23:52:40 +02:00
Astro 2ddc9f041b hashes/22.03.0-rc1: add 2022-04-28 23:03:33 +02:00
Astro bb757271e3 profiles-list: generate for all known releases 2022-04-28 03:12:41 +02:00
Astro b2a5626072 hashes/19.07.10: add 2022-04-28 02:56:44 +02:00
Astro 7c6f2f0625 flake: lib.profiles default options 2022-04-28 02:42:17 +02:00
Astro af273099ea profiles-list: init 2022-04-28 02:38:30 +02:00
Astro 0068b5c168 profiles: let identifyProfile return one single match 2022-04-28 01:22:29 +02:00
Astro 3db95068d2 profiles: init with allProfiles+identifyProfile 2022-04-28 01:17:41 +02:00
Astro fbf0e8733b generate-hashes: s/subtarget/variant/ 2022-04-28 00:51:08 +02:00
Astro 9ec872e36a builder: refactor into files.nix 2022-04-28 00:42:02 +02:00
Astro a8258eece3 generate-hashes: fix 2022-04-27 23:35:00 +02:00
Astro 2a6c91360b
LICENSE: add MIT 2022-04-27 22:40:54 +02:00
Astro 484a75fa0e README: init 2022-04-27 22:39:18 +02:00
Astro a1be539440 exmaple.nix: add files 2022-04-27 22:34:58 +02:00
Astro a0502ecaab flake.nix: add checks, hydraJobs, extend example 2022-04-27 22:29:58 +02:00
Astro 8d30c2ef14 generate-hashes, flakify 2022-04-27 22:25:39 +02:00
Astro 2baf162de0 example.nix: rename from default.nix 2022-04-27 22:24:49 +02:00
Astro 9b6e88396b builder: add imagebuilder parameters 2022-04-27 18:25:01 +02:00
Astro a9e4c947bd builder: remove openwrtConfig debug output 2022-04-27 18:20:52 +02:00
Astro 1788e2674a builder: dontFixup 2022-04-27 02:59:05 +02:00
Astro 2431ef66cd builder: shallow installPhase 2022-04-27 02:40:55 +02:00
Astro d8df8f0565 builder: put variantPackages in its own derivation 2022-04-27 02:38:20 +02:00
Astro e11740497a PoC 2022-04-27 02:34:09 +02:00