Skip to content

Commit 16340cb

Browse files
committed
Reduce sysroot size further
1 parent 037394c commit 16340cb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

build-hnp/aria2/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ all: download/aria2-1.37.0.tar.gz
99
cd temp/aria2-1.37.0 && make -j $(shell nproc) && make install DESTDIR=$(shell pwd)/build
1010
rm -v build/data/app/base.org/base_1.0/lib/*.la
1111
mkdir -p ../sysroot
12-
#$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/data/app/base.org/base_1.0/bin/*
12+
$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/data/app/base.org/base_1.0/bin/*
13+
$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/data/app/base.org/base_1.0/lib/*.so*
1314
cp -rfv build/data/app/base.org/base_1.0/. ../sysroot | tee file.lst
1415

1516
download/aria2-1.37.0.tar.gz:

build-hnp/python/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ all: download/Python-3.13.5.tar.xz
1818
cd temp/Python-3.13.5/build && make -j $(shell nproc)
1919
cd temp/Python-3.13.5/build && make install DESTDIR=$(shell pwd)/build
2020
$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/usr/local/bin/python3.13
21-
$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/usr/local/lib/*.so
21+
$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/usr/local/lib/*.so*
2222
$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/usr/local/lib/python3.13/config-3.13/libpython3.13.a
23+
$(OHOS_SDK_HOME)/native/llvm/bin/llvm-strip build/usr/local/lib/python3.13/lib-dynload/*.so
2324
mkdir -p ../sysroot
2425
cp -rfv build/usr/local/. ../sysroot | tee file.lst
2526

0 commit comments

Comments
 (0)