Skip to content

Commit 019c913

Browse files
authored
Merge pull request #130 from SwimmingTiger/p7zip
add p7zip (7z/7za)
2 parents d0b5901 + 251a490 commit 019c913

24 files changed

Lines changed: 143 additions & 40 deletions

File tree

.github/workflows/hnp.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,21 @@ jobs:
1919
- name: Update Apt Cache
2020
run: sudo apt update
2121

22-
- name: Free Disk Space (Ubuntu)
23-
uses: jlumbroso/free-disk-space@main
24-
with:
25-
# this might remove tools that are actually needed,
26-
# if set to "true" but frees about 6 GB
27-
tool-cache: true
28-
# all of these default to true, but feel free to set to
29-
# "false" if necessary for your workflow
30-
android: true
31-
dotnet: true
32-
haskell: true
33-
large-packages: true
34-
docker-images: true
35-
swap-storage: true
22+
# Disabled due to excessive time consumption and no clear benefit
23+
#- name: Free Disk Space (Ubuntu)
24+
# uses: jlumbroso/free-disk-space@main
25+
# with:
26+
# # this might remove tools that are actually needed,
27+
# # if set to "true" but frees about 6 GB
28+
# tool-cache: true
29+
# # all of these default to true, but feel free to set to
30+
# # "false" if necessary for your workflow
31+
# android: true
32+
# dotnet: true
33+
# haskell: true
34+
# large-packages: true
35+
# docker-images: true
36+
# swap-storage: true
3637

3738
- name: Checkout
3839
uses: actions/checkout@v4

build-hnp/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ PKGS=gettext \
6969
ffmpeg \
7070
util-linux \
7171
nano \
72-
less
72+
less \
73+
p7zip
7374
else ifeq ($(OHOS_ARCH),x86_64)
7475
PKGS=gettext \
7576
bash \
@@ -140,7 +141,8 @@ PKGS=gettext \
140141
ffmpeg \
141142
util-linux \
142143
nano \
143-
less
144+
less \
145+
p7zip
144146
else
145147
echo "Unsupported OHOS_ARCH=$(OHOS_ARCH)"
146148
exit 1

build-hnp/busybox/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ all: download/busybox-1.37.0.tar.bz2
3232

3333
download/busybox-1.37.0.tar.bz2:
3434
mkdir -p download
35-
cd download && wget https://busybox.net/downloads/busybox-1.37.0.tar.bz2
35+
cd download && $(WGET) https://mirrors.slackware.com/slackware/slackware64-current/source/a/mkinitrd/busybox-1.37.0.tar.bz2

build-hnp/coremark/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ all: download/main.zip
1010

1111
download/main.zip:
1212
mkdir -p download
13-
cd download && wget https://github.com/eembc/coremark/archive/refs/heads/main.zip
13+
cd download && $(WGET) https://github.com/eembc/coremark/archive/refs/heads/main.zip

build-hnp/ffmpeg/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ all: download/ffmpeg-8.0.tar.xz ohos_config.sh
3232

3333
download/ffmpeg-8.0.tar.xz:
3434
mkdir -p download
35-
cd download && wget -O ffmpeg-8.0.tar.xz https://ffmpeg.org/releases/ffmpeg-8.0.tar.xz
35+
cd download && $(WGET) -O ffmpeg-8.0.tar.xz https://ffmpeg.org/releases/ffmpeg-8.0.tar.xz

build-hnp/gcc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ all: download/gcc-15.1.0.tar.xz
1818

1919
download/gcc-15.1.0.tar.xz:
2020
mkdir -p download
21-
cd download && wget https://mirrors.tuna.tsinghua.edu.cn/gnu/gcc/gcc-15.1.0/gcc-15.1.0.tar.xz
21+
cd download && $(WGET) https://mirrors.tuna.tsinghua.edu.cn/gnu/gcc/gcc-15.1.0/gcc-15.1.0.tar.xz

build-hnp/git/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include ../utils/Makefrag
2+
13
all: download/v2.49.0.tar.gz
24
rm -rf temp build
35
mkdir -p temp build
@@ -19,4 +21,4 @@ all: download/v2.49.0.tar.gz
1921

2022
download/v2.49.0.tar.gz:
2123
mkdir -p download
22-
cd download && wget https://github.com/git/git/archive/refs/tags/v2.49.0.tar.gz
24+
cd download && $(WGET) https://github.com/git/git/archive/refs/tags/v2.49.0.tar.gz

build-hnp/hdc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ all: download/hdc.zip download/securec.zip CMakeLists.txt
1515

1616
download/hdc.zip:
1717
mkdir -p download
18-
cd download && wget -O hdc.zip https://gitee.com/openharmony/developtools_hdc/repository/archive/OpenHarmony-v5.0.1-Release.zip
18+
cd download && $(WGET) -O hdc.zip https://gitee.com/openharmony/developtools_hdc/repository/archive/OpenHarmony-v5.0.1-Release.zip
1919

2020
download/securec.zip:
2121
mkdir -p download
22-
cd download && wget -O securec.zip https://gitee.com/openharmony/third_party_bounds_checking_function/repository/archive/OpenHarmony-5.0.1-Release.zip
22+
cd download && $(WGET) -O securec.zip https://gitee.com/openharmony/third_party_bounds_checking_function/repository/archive/OpenHarmony-5.0.1-Release.zip

build-hnp/kbd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ all: download/kbd-2.8.0.tar.xz
1313

1414
download/kbd-2.8.0.tar.xz:
1515
mkdir -p download
16-
cd download && wget https://www.kernel.org/pub/linux/utils/kbd/kbd-2.8.0.tar.xz
16+
cd download && $(WGET) https://www.kernel.org/pub/linux/utils/kbd/kbd-2.8.0.tar.xz

build-hnp/ncnn/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ all: download/ncnn-20250503-full-source.zip
1717

1818
download/ncnn-20250503-full-source.zip:
1919
mkdir -p download
20-
cd download && wget https://github.com/Tencent/ncnn/releases/download/20250503/ncnn-20250503-full-source.zip
20+
cd download && $(WGET) https://github.com/Tencent/ncnn/releases/download/20250503/ncnn-20250503-full-source.zip

0 commit comments

Comments
 (0)