Skip to content

Commit 8531c68

Browse files
committed
Add OpenWrt and ChirpStack feed as submodules.
This fixes the openwrt and chirpstack-opwrt-feed packages to a specific version, making the builds (more) reproducible.
1 parent 1565a88 commit 8531c68

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# OpenWrt
2-
/openwrt
1+
# Dist
32
/dist
43

54
# Hidden files

.gitmodules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[submodule "openwrt"]
2+
path = openwrt
3+
url = https://github.com/openwrt/openwrt.git
4+
branch = openwrt-23.05
5+
[submodule "feeds/chirpstack-openwrt-feed"]
6+
path = feeds/chirpstack-openwrt-feed
7+
url = https://github.com/chirpstack/chirpstack-openwrt-feed.git

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ build:
77

88
# Initialize the OpenWrt environment.
99
init:
10-
git clone --branch openwrt-23.05 https://github.com/openwrt/openwrt.git
10+
git submodule init
11+
git submodule update
1112
cp feeds.conf.default openwrt/feeds.conf.default
1213
ln -s ../conf/.config openwrt/.config
1314
ln -s ../conf/files openwrt/files
@@ -17,8 +18,9 @@ init:
1718

1819
# Update OpenWrt + package feeds.
1920
update:
21+
git submodule update
22+
cp feeds.conf.default openwrt/feeds.conf.default
2023
cd openwrt && \
21-
git pull && \
2224
./scripts/feeds update -a && \
2325
./scripts/feeds install -a
2426

feeds.conf.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
src-git packages https://git.openwrt.org/feed/packages.git;openwrt-23.05
22
src-git luci https://git.openwrt.org/project/luci.git;openwrt-23.05
33
src-git routing https://git.openwrt.org/feed/routing.git;openwrt-23.05
4-
src-git chirpstack https://github.com/chirpstack/chirpstack-openwrt-feed.git
4+
src-link chirpstack /workdir/feeds/chirpstack-openwrt-feed

feeds/chirpstack-openwrt-feed

Submodule chirpstack-openwrt-feed added at cb79ebd

openwrt

Submodule openwrt added at 56827da

0 commit comments

Comments
 (0)