4 Commits

Author SHA1 Message Date
Attila Lendvai
7a3ae89b20 added a manifest.scm for guix 2023-10-23 00:09:19 +02:00
Attila Lendvai
0d4d33409e set SOURCE_DATE_EPOCH
without this the image builder fails.

this might be connected to the inability of the configure script to
properly detect git on guix, but not likely.
2023-10-22 22:48:41 +02:00
Attila Lendvai
836235e656 use OpenWrt 19.07.9 2023-10-22 22:22:22 +02:00
Attila Lendvai
ab6816284f decrease memory need of dd while erasing the partition table
this was leading to the OOM killer killing dd.
2023-10-22 21:53:49 +02:00
3 changed files with 31 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ BUILD=`readlink -f $BUILD`
###
### chose a release
###
RELEASE="19.07.6"
RELEASE="19.07.9"
IMGBUILDER_NAME="openwrt-imagebuilder-${RELEASE}-${TARGET_ARCHITECTURE}-${TARGET_VARIANT}.Linux-x86_64"
IMGBUILDER_DIR="${BUILD}/${IMGBUILDER_NAME}"
@@ -70,6 +70,9 @@ fi
pushd ${IMGBUILDER_DIR}
# Without this the image builder fails.
export SOURCE_DATE_EPOCH=$(git show -s --format=%ct HEAD)
make image PROFILE=${TARGET_DEVICE} PACKAGES="${PREINSTALLED_PACKAGES}" FILES=${IMGTEMPDIR}
pushd bin/targets/${TARGET_ARCHITECTURE}/

View File

@@ -34,7 +34,7 @@ hasBigEnoughPendrive()
setupPendrivePartitions()
{
# erase partition table
dd if=/dev/zero of=/dev/sda bs=1M count=1
dd if=/dev/zero of=/dev/sda bs=1k count=256
# sda1 is 'swap'
# sda2 is 'root'

26
manifest.scm Normal file
View File

@@ -0,0 +1,26 @@
;; This is the complete list of Guix packages necessary for building.
;;
;; The following shell command will run the tests:
;;
;; guix shell -m manifest.scm --pure -- ./build.sh ath79 generic tplink_tl-wdr4300-v1
;;
;; TODO ...ideally. some dependencies are not listed, and it fails when using --pure
;;
;; Quircks on Guix: the check for git fails, must edit
;; build/openwrt-imagebuilder-19.07.9-ath79-generic.Linux-x86_64/include/prereq-build.mk
;; and comment out the git check.
;;
(specifications->manifest
'("coreutils"
"bash"
"make"
"perl"
"python2"
"gcc-toolchain"
"git"
"git:gui"
;; "man-pages"
"less"
"time"))