Compare commits
4 Commits
openwrt-23
...
openwrt-19
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a3ae89b20 | ||
|
|
0d4d33409e | ||
|
|
836235e656 | ||
|
|
ab6816284f |
5
build.sh
5
build.sh
@@ -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}/
|
||||
|
||||
@@ -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
26
manifest.scm
Normal 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"))
|
||||
Reference in New Issue
Block a user