Compare commits
16 Commits
5776a1b379
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a88160855 | |||
| 3e10d60cdd | |||
| 2abe77794c | |||
| 1e086f8c27 | |||
| 492606d913 | |||
| 1b2455357a | |||
| 9d2dc556a1 | |||
| 72ba57a47b | |||
| b9ac625404 | |||
| 417593b8f0 | |||
| 940405ee69 | |||
| 914dd81c81 | |||
| bce584d6d8 | |||
| 78857d67b6 | |||
| 4689482c6c | |||
| b00d96a31a |
57
.drone.yml
Normal file
57
.drone.yml
Normal file
@@ -0,0 +1,57 @@
|
||||
kind: pipeline
|
||||
name: openwrt
|
||||
type: docker
|
||||
|
||||
platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
include:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: openwrt
|
||||
image: bitnami/git
|
||||
commands:
|
||||
- git clone -b openwrt-23.05 --single-branch http://gitea.service.nr5/mirrors/openwrt.git
|
||||
- name: setup
|
||||
image: cr.wks/debian-stable-openwrt:latest
|
||||
commands:
|
||||
- ls -la
|
||||
- cp -v config-DIR825-rndis openwrt/.config
|
||||
- name: feeds
|
||||
image: cr.wks/debian-stable-openwrt:latest
|
||||
commands:
|
||||
- cd openwrt
|
||||
- ./scripts/feeds update -a
|
||||
- ./scripts/feeds install -a
|
||||
- name: make-prepare
|
||||
image: cr.wks/debian-stable-openwrt:latest
|
||||
commands:
|
||||
- cd openwrt
|
||||
- make -j2 defconfig
|
||||
- make -j2 download
|
||||
- make -j2 clean
|
||||
- name: make-world
|
||||
image: cr.wks/debian-stable-openwrt:latest
|
||||
commands:
|
||||
- cd openwrt
|
||||
- export FORCE_UNSAFE_CONFIGURE=1
|
||||
- make -j2 world
|
||||
- name: deploy
|
||||
image: cr.wks/drone/drone-rsync:latest
|
||||
settings:
|
||||
hosts: ["ebin01.wks"]
|
||||
source: openwrt/bin/
|
||||
target: /data/raid1-ssd/app-data/openwrt/
|
||||
user: admini
|
||||
#exclude: ['sites/default', 'files/kmm', 'files/tmp', '.git*', '*drone.yml', '.settings', '.buildpath', '.editorconfig', '.project']
|
||||
args: '-v --delete'
|
||||
log_level: quiet
|
||||
key:
|
||||
from_secret: admini-ebin01-ssh-rsa
|
||||
command_timeout: 15m
|
||||
18
Dockerfile
18
Dockerfile
@@ -1,18 +0,0 @@
|
||||
FROM docker.io/openjdk:jdk-buster
|
||||
|
||||
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list; \
|
||||
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list; \
|
||||
apt update -y; \
|
||||
apt install -y build-essential ccache ecj fastjar file g++ gawk \
|
||||
gettext git java-propose-classpath libelf-dev libncurses5-dev \
|
||||
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
|
||||
python3-distutils python3-setuptools rsync subversion swig time \
|
||||
xsltproc zlib1g-dev make distcc distcc-pump nfs-common; \
|
||||
apt-get remove --purge -y exim* && \
|
||||
apt-get autoremove --purge -y && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm -rf /var/cache/apt/* && \
|
||||
ln -sv /usr/lib/distcc-pump/lib/python3.7/site-packages/include_server /usr/lib/distcc-pump/include_server && \
|
||||
rm -v /etc/distcc/hosts && \
|
||||
sed -i s/NEED_STATD=$/NEED_STATD=yes/i /etc/default/nfs-common
|
||||
@@ -1,3 +1,6 @@
|
||||
# Built in Drone
|
||||
|
||||
|
||||
# OpenWRT
|
||||
|
||||
* Building: https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem
|
||||
@@ -12,4 +15,4 @@
|
||||
# PogoPlug Pro with 'Qualcomm Atheros AR9462 Wireless Network Adapter'
|
||||
|
||||
* needs: ATH9K_SUPPORT_PCOEM - in https://openwrt.org/packages/pkgdata/kmod-ath9k
|
||||
`Kernel Modules -> Wireless Drivers -> {*} kmod-ath9k`
|
||||
`Kernel Modules -> Wireless Drivers -> {*} kmod-ath9k`
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: PipelineResource
|
||||
metadata:
|
||||
name: openwrt-configs-git
|
||||
spec:
|
||||
type: git
|
||||
params:
|
||||
- name: revision
|
||||
value: master
|
||||
- name: url
|
||||
value: http://git-ui.lan/chaos/openwrt-configs.git
|
||||
---
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Task
|
||||
metadata:
|
||||
name: build-openwrt
|
||||
spec:
|
||||
params:
|
||||
- name: make_flags
|
||||
type: string
|
||||
default: ""
|
||||
- name: config
|
||||
type: string
|
||||
- name: version
|
||||
type: string
|
||||
default: ""
|
||||
resources:
|
||||
inputs:
|
||||
- name: openwrt-configs
|
||||
type: git
|
||||
workspaces:
|
||||
- name: tmp
|
||||
mountPath: /usr/src/openwrt/tmp
|
||||
steps:
|
||||
- name: openwrt-get
|
||||
resources:
|
||||
requests:
|
||||
memory: 128M
|
||||
cpu: 200m
|
||||
limits:
|
||||
memory: 300M
|
||||
cpu: 800m
|
||||
image: cr.lan/debian-stable-openwrt-build
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
if [ ! -d /usr/src/openwrt ]; then
|
||||
git clone https://github.com/openwrt/openwrt.git /usr/src/openwrt
|
||||
fi
|
||||
cd /usr/src/openwrt
|
||||
echo "O_VERS: $(params.version)"
|
||||
git branch -l
|
||||
git checkout $(params.version) || exit 1
|
||||
git pull
|
||||
- name: build-openwrt
|
||||
resources:
|
||||
requests:
|
||||
memory: 500m
|
||||
cpu: 500m
|
||||
limits:
|
||||
memory: 1Gi
|
||||
cpu: 3000m
|
||||
image: cr.lan/debian-stable-openwrt-build
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
echo $PATH
|
||||
cd /usr/src/openwrt
|
||||
CCACHE_DIR=$(echo staging_dir/target-*)/ccache ccache -s
|
||||
ls -la .
|
||||
export FORCE_UNSAFE_CONFIGURE=1
|
||||
export IGNORE_ERRORS=1
|
||||
### cleanup
|
||||
#make clean
|
||||
#./scripts/feeds clean -a
|
||||
#### /cleanup
|
||||
echo "res.input.ke...path: $(resources.inputs.openwrt-configs.path)"
|
||||
cp -v $(resources.inputs.openwrt-configs.path)/$(params.config) \
|
||||
/usr/src/openwrt/.config || exit 1
|
||||
./scripts/feeds update -a
|
||||
./scripts/feeds install -a -f
|
||||
# build env does not like to be run as root....
|
||||
|
||||
make V=s -j4 download world $(params.make_flags) 2>&1
|
||||
- name: upload-assets
|
||||
image: docker.io/minio/mc
|
||||
env:
|
||||
- name: MINIO_HOST
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: minio-openwrt
|
||||
key: endpoint
|
||||
- name: MINIO_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: minio-openwrt
|
||||
key: username
|
||||
- name: MINIO_SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: minio-openwrt
|
||||
key: password
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
cd /usr/src/openwrt/bin
|
||||
mc alias set minio-openwrt $MINIO_HOST $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
|
||||
mc mirror --remove --insecure -a . minio-openwrt/openwrt
|
||||
workspaces:
|
||||
- name: usr-src
|
||||
mountPath: /usr/src
|
||||
---
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: TaskRun
|
||||
metadata:
|
||||
name: openwrt-dir825-rndis
|
||||
spec:
|
||||
taskRef:
|
||||
name: build-openwrt
|
||||
params:
|
||||
- name: config
|
||||
value: config-DIR825-rndis
|
||||
- name: version
|
||||
value: openwrt-21.02
|
||||
resources:
|
||||
inputs:
|
||||
- name: openwrt-configs
|
||||
resourceRef:
|
||||
name: openwrt-configs-git
|
||||
workspaces:
|
||||
- name: usr-src
|
||||
persistentVolumeClaim:
|
||||
claimName: tektoncd-workspaces
|
||||
subPath: usr_src
|
||||
5126
config-DIR825-rndis
5126
config-DIR825-rndis
File diff suppressed because it is too large
Load Diff
@@ -5844,7 +5844,7 @@ CONFIG_PACKAGE_luci-ssl-openssl=m
|
||||
# 2. Modules
|
||||
#
|
||||
CONFIG_PACKAGE_luci-base=m
|
||||
CONFIG_LUCI_SRCDIET=y
|
||||
# CONFIG_LUCI_SRCDIET is not set
|
||||
CONFIG_LUCI_JSMIN=y
|
||||
CONFIG_LUCI_CSSTIDY=y
|
||||
|
||||
@@ -6160,6 +6160,7 @@ CONFIG_PACKAGE_luci-i18n-adblock-fast-ko=m
|
||||
CONFIG_PACKAGE_luci-i18n-adblock-fast-lt=m
|
||||
CONFIG_PACKAGE_luci-i18n-adblock-fast-mr=m
|
||||
CONFIG_PACKAGE_luci-i18n-adblock-fast-ms=m
|
||||
CONFIG_PACKAGE_luci-i18n-adblock-fast-nl=m
|
||||
CONFIG_PACKAGE_luci-i18n-adblock-fast-no=m
|
||||
CONFIG_PACKAGE_luci-i18n-adblock-fast-pl=m
|
||||
CONFIG_PACKAGE_luci-i18n-adblock-fast-pt=m
|
||||
@@ -7102,6 +7103,7 @@ CONFIG_PACKAGE_luci-i18n-https-dns-proxy-ko=m
|
||||
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-lt=m
|
||||
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-mr=m
|
||||
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-ms=m
|
||||
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-nl=m
|
||||
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-no=m
|
||||
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-pl=m
|
||||
CONFIG_PACKAGE_luci-i18n-https-dns-proxy-pt=m
|
||||
@@ -8316,7 +8318,40 @@ CONFIG_PACKAGE_luci-i18n-tinyproxy-uk=m
|
||||
CONFIG_PACKAGE_luci-i18n-tinyproxy-vi=m
|
||||
CONFIG_PACKAGE_luci-i18n-tinyproxy-zh-cn=m
|
||||
CONFIG_PACKAGE_luci-i18n-tinyproxy-zh-tw=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-ar=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-bg=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-bn=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-ca=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-cs=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-da=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-de=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-el=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-es=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-fi=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-fr=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-he=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-hi=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-hu=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-it=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-ja=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-ko=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-lt=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-mr=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-ms=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-nl=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-no=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-pl=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-pt=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-pt-br=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-ro=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-ru=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-sk=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-sv=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-tr=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-uk=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-vi=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-zh-cn=m
|
||||
CONFIG_PACKAGE_luci-i18n-tor-zh-tw=m
|
||||
CONFIG_PACKAGE_luci-i18n-transmission-ar=m
|
||||
CONFIG_PACKAGE_luci-i18n-transmission-bg=m
|
||||
CONFIG_PACKAGE_luci-i18n-transmission-bn=m
|
||||
@@ -11591,8 +11626,21 @@ CONFIG_PACKAGE_xfrpc=m
|
||||
#
|
||||
# Wireless
|
||||
#
|
||||
# CONFIG_PACKAGE_aircrack-ng is not set
|
||||
# CONFIG_PACKAGE_airmon-ng is not set
|
||||
CONFIG_PACKAGE_aircrack-ng=m
|
||||
|
||||
#
|
||||
# SSL support
|
||||
#
|
||||
CONFIG_AIRCRACK_NG_OPENSSL=y
|
||||
# CONFIG_AIRCRACK_NG_GCRYPT is not set
|
||||
# CONFIG_AIRCRACK_NG_OPTIMIZE_SPEED is not set
|
||||
|
||||
#
|
||||
# Miscellaneous
|
||||
#
|
||||
# CONFIG_AIRCRACK_NG_HWLOC is not set
|
||||
# CONFIG_AIRCRACK_NG_SQLITE3 is not set
|
||||
CONFIG_PACKAGE_airmon-ng=m
|
||||
CONFIG_PACKAGE_dynapoint=m
|
||||
CONFIG_PACKAGE_hcxdumptool=m
|
||||
CONFIG_PACKAGE_hcxtools=m
|
||||
@@ -12218,13 +12266,13 @@ CONFIG_PACKAGE_ztdns=m
|
||||
#
|
||||
# Sound
|
||||
#
|
||||
# CONFIG_PACKAGE_alsa-utils is not set
|
||||
# CONFIG_PACKAGE_alsa-utils-seq is not set
|
||||
# CONFIG_PACKAGE_alsa-utils-tests is not set
|
||||
# CONFIG_PACKAGE_aserver is not set
|
||||
# CONFIG_PACKAGE_beep is not set
|
||||
# CONFIG_PACKAGE_espeak is not set
|
||||
# CONFIG_PACKAGE_faad2 is not set
|
||||
CONFIG_PACKAGE_alsa-utils=m
|
||||
CONFIG_PACKAGE_alsa-utils-seq=m
|
||||
CONFIG_PACKAGE_alsa-utils-tests=m
|
||||
CONFIG_PACKAGE_aserver=m
|
||||
CONFIG_PACKAGE_beep=m
|
||||
CONFIG_PACKAGE_espeak=m
|
||||
CONFIG_PACKAGE_faad2=m
|
||||
CONFIG_PACKAGE_fdk-aac=m
|
||||
|
||||
#
|
||||
@@ -12233,8 +12281,8 @@ CONFIG_PACKAGE_fdk-aac=m
|
||||
# CONFIG_FDK-AAC_OPTIMIZE_SPEED is not set
|
||||
# end of Configuration
|
||||
|
||||
# CONFIG_PACKAGE_ices is not set
|
||||
# CONFIG_PACKAGE_lame is not set
|
||||
CONFIG_PACKAGE_ices=m
|
||||
CONFIG_PACKAGE_lame=m
|
||||
CONFIG_PACKAGE_lame-lib=m
|
||||
|
||||
#
|
||||
@@ -12243,35 +12291,41 @@ CONFIG_PACKAGE_lame-lib=m
|
||||
# CONFIG_LAME-LIB_OPTIMIZE_SPEED is not set
|
||||
# end of Configuration
|
||||
|
||||
# CONFIG_PACKAGE_liblo-utils is not set
|
||||
# CONFIG_PACKAGE_madplay is not set
|
||||
# CONFIG_PACKAGE_moc is not set
|
||||
# CONFIG_PACKAGE_mpc is not set
|
||||
# CONFIG_PACKAGE_mpd-avahi-service is not set
|
||||
# CONFIG_PACKAGE_mpd-full is not set
|
||||
# CONFIG_PACKAGE_mpd-mini is not set
|
||||
CONFIG_PACKAGE_liblo-utils=m
|
||||
CONFIG_PACKAGE_madplay=m
|
||||
CONFIG_PACKAGE_moc=m
|
||||
CONFIG_PACKAGE_mpc=m
|
||||
CONFIG_PACKAGE_mpd-avahi-service=m
|
||||
CONFIG_PACKAGE_mpd-full=m
|
||||
CONFIG_PACKAGE_mpd-mini=m
|
||||
CONFIG_PACKAGE_mpg123=m
|
||||
# CONFIG_PACKAGE_opus-tools is not set
|
||||
# CONFIG_PACKAGE_owntone is not set
|
||||
# CONFIG_PACKAGE_pianod is not set
|
||||
# CONFIG_PACKAGE_pianod-client is not set
|
||||
CONFIG_PACKAGE_opus-tools=m
|
||||
CONFIG_PACKAGE_owntone=m
|
||||
CONFIG_PACKAGE_pianod=m
|
||||
CONFIG_PACKAGE_pianod-client=m
|
||||
CONFIG_PACKAGE_portaudio=m
|
||||
CONFIG_PACKAGE_pulseaudio-daemon=m
|
||||
# CONFIG_PACKAGE_pulseaudio-daemon-avahi is not set
|
||||
# CONFIG_PACKAGE_pulseaudio-profiles is not set
|
||||
# CONFIG_PACKAGE_pulseaudio-tools is not set
|
||||
# CONFIG_PACKAGE_rtpmidid is not set
|
||||
CONFIG_PACKAGE_pulseaudio-daemon-avahi=m
|
||||
CONFIG_PACKAGE_pulseaudio-profiles=m
|
||||
CONFIG_PACKAGE_pulseaudio-tools=m
|
||||
CONFIG_PACKAGE_rtpmidid=m
|
||||
CONFIG_PACKAGE_shairplay=m
|
||||
# CONFIG_PACKAGE_shairport-sync-mbedtls is not set
|
||||
# CONFIG_PACKAGE_shairport-sync-mini is not set
|
||||
# CONFIG_PACKAGE_shairport-sync-openssl is not set
|
||||
CONFIG_PACKAGE_shairport-sync-mbedtls=m
|
||||
CONFIG_PACKAGE_shairport-sync-mini=m
|
||||
CONFIG_PACKAGE_shairport-sync-openssl=m
|
||||
CONFIG_PACKAGE_shine=m
|
||||
# CONFIG_PACKAGE_sox is not set
|
||||
# CONFIG_PACKAGE_squeezelite-full is not set
|
||||
# CONFIG_PACKAGE_squeezelite-mini is not set
|
||||
# CONFIG_PACKAGE_svox is not set
|
||||
# CONFIG_PACKAGE_ttymidi-sysex is not set
|
||||
# CONFIG_PACKAGE_upmpdcli is not set
|
||||
CONFIG_PACKAGE_sox=m
|
||||
CONFIG_PACKAGE_squeezelite-full=m
|
||||
# CONFIG_SQUEEZELITE_RESAMPLE is not set
|
||||
# CONFIG_SQUEEZELITE_DSD is not set
|
||||
# CONFIG_SQUEEZELITE_SSL is not set
|
||||
# CONFIG_SQUEEZELITE_OPUS is not set
|
||||
CONFIG_PACKAGE_squeezelite-mini=m
|
||||
CONFIG_PACKAGE_svox=m
|
||||
CONFIG_PACKAGE_ttymidi-sysex=m
|
||||
CONFIG_PACKAGE_upmpdcli=m
|
||||
# CONFIG_PACKAGE_UPMPDCLI_SCCTL is not set
|
||||
# CONFIG_PACKAGE_UPMPDCLI_SC_WEB_INTERFACE is not set
|
||||
# end of Sound
|
||||
|
||||
#
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: PipelineRun
|
||||
metadata:
|
||||
name: img-debian-stable-openwrt-build
|
||||
spec:
|
||||
pipelineRef:
|
||||
name: kaniko-pipeline
|
||||
params:
|
||||
- name: git-url
|
||||
value: http://git-ui.lan/chaos/openwrt-configs.git
|
||||
- name: git-revision
|
||||
value: master
|
||||
- name: path-to-image-context
|
||||
value: ./
|
||||
- name: path-to-dockerfile
|
||||
value: Dockerfile
|
||||
- name: image-name
|
||||
value: cr.lan/debian-stable-openwrt-build
|
||||
workspaces:
|
||||
- name: git-source
|
||||
persistentVolumeClaim:
|
||||
claimName: tektoncd-workspaces
|
||||
subPath: tekton/debian-stable-openwrt-build
|
||||
Reference in New Issue
Block a user