Skip to content

Commit 69dfcc8

Browse files
committed
init_build_environment: improve build padjffs2
Avoid unnecessary traffic wastes. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
1 parent 70910e2 commit 69dfcc8

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
1.7K May 8 2024 convert_translation.sh
2121
3.0K May 8 2024 create_acl_for_luci.sh
2222
3.7K May 8 2024 create_ucitrack_for_luci.sh
23-
12K Feb 7 17:28 init_build_environment.sh
23+
12K Jun 16 16:07 init_build_environment.sh
2424
18K Jun 1 2023 LICENSE
2525
4.0K Feb 6 14:59 maintainer-tools
2626
4.7K Feb 6 15:05 maketag.sh
@@ -51,7 +51,7 @@
5151
1.5K Jun 1 2023 count-contributions.sh
5252
3.4K Jun 1 2023 github-apply.sh
5353
7.8K Feb 6 14:59 github-merge-pr.sh
54-
3.9K Nov 14 12:14 makebranch.sh
54+
3.9K Nov 14 2024 makebranch.sh
5555
24K Jun 1 2023 make-changelog.pl
5656
5.9K Jun 1 2023 make-signatures.pl
5757
4.7K Jun 1 2023 maketag.sh

init_build_environment.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,11 @@ function install_dependencies() {
262262
chmod 0755 "/usr/bin/upx-ucl"
263263
ln -svf "/usr/bin/upx-ucl" "/usr/bin/upx"
264264

265-
git clone --filter=blob:none --no-checkout "https://github.com/openwrt/openwrt.git" "padjffs2"
266-
pushd "padjffs2"
267-
git config core.sparseCheckout true
268-
echo "tools/padjffs2/src" >> ".git/info/sparse-checkout"
269-
git checkout
270-
cd "tools/padjffs2/src"
271-
make
265+
curl -fLO "https://raw.githubusercontent.com/openwrt/openwrt/main/tools/padjffs2/src/padjffs2.c"
266+
gcc -Wall -Werror -o "padjffs2" "padjffs2.c"
272267
strip "padjffs2"
273-
rm -rf "/usr/bin/padjffs2"
268+
rm -rf "padjffs2.c" "/usr/bin/padjffs2"
274269
cp -fp "padjffs2" "/usr/bin/padjffs2"
275-
popd
276270

277271
git clone --filter=blob:none --no-checkout "https://github.com/openwrt/luci.git" "po2lmo"
278272
pushd "po2lmo"

0 commit comments

Comments
 (0)