Skip to content

Commit 9c7530a

Browse files
authored
Merge pull request #124 from hao-yao/main
ARL platform PV release candidate on 2024-09-27
2 parents 8863bda + 36ae3b6 commit 9c7530a

File tree

162 files changed

+4359
-55246
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+4359
-55246
lines changed

.github/workflows/build-tests.yml

+63-35
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Build tests
22

33
on:
44
push:
5-
branches:
6-
- main
75

86
pull_request:
97

@@ -13,48 +11,78 @@ jobs:
1311
build:
1412
strategy:
1513
matrix:
16-
version: [ipu6epmtl, ipu6ep, ipu6]
14+
version: [ipu6]
1715
os: ["ubuntu:24.04", "ubuntu:22.04", "ubuntu:20.04"]
1816
runs-on: ubuntu-latest
1917
container: ${{ matrix.os }}
2018
steps:
2119
- uses: actions/checkout@v4
22-
- name: Build test for ${{ matrix.version }} on ${{ matrix.os }}
23-
timeout-minutes: 10
20+
with:
21+
repository: intel/ipu6-camera-bins
22+
ref: main
23+
path: bins
24+
25+
- name: Install from intel/ipu6-camera-bins
26+
run: |
27+
cd "${GITHUB_WORKSPACE}/bins"
28+
29+
cat README.md | \
30+
awk 'BEGIN { \
31+
FS="/"; \
32+
} \
33+
/^```/ { \
34+
getline; \
35+
if ($1 == "# Runtime files") { \
36+
while ($1 != "```") { \
37+
print $0; \
38+
getline; \
39+
} \
40+
} \
41+
}' | \
42+
sed 's,ipu6-camera-bins/,./,' | \
43+
sh -x
44+
45+
- uses: actions/checkout@v4
46+
with:
47+
path: hal
48+
49+
- name: Install prerequisite packages
2450
run: |
25-
case "${{ matrix.version }}" in
26-
(ipu6)
27-
PLATFORM="ipu_tgl"
28-
;;
29-
(ipu6ep)
30-
PLATFORM="ipu_adl"
31-
;;
32-
(ipu6epmtl)
33-
PLATFORM="ipu_mtl"
34-
;;
35-
(*)
36-
echo "Not support for ${IPU_VER} yet."
37-
exit 1
38-
;;
39-
esac
4051
echo 'APT::Get::Always-Include-Phased-Updates True;' | tee -a /etc/apt/apt.conf
4152
echo 'Acquire::http::User-Agent-Non-Interactive "true";' | tee -a /etc/apt/apt.conf
4253
apt-get update -q
4354
export TZ=Asia/Shanghai
4455
echo "" | apt-get install -qy tzdata
45-
echo "" | apt-get install git build-essential cmake libexpat-dev automake libtool libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev libdrm-dev --yes
46-
git clone https://github.com/intel/ipu6-camera-bins -b main --depth 1
47-
cp -rv ipu6-camera-bins/include/"${PLATFORM}" /usr/include/
48-
cp -rv ipu6-camera-bins/lib/"${PLATFORM}" /usr/lib/
49-
rm -fr /usr/lib/"${PLATFORM}"/pkgconfig
50-
cp -rv ipu6-camera-bins/lib/"${PLATFORM}"/pkgconfig/* /usr/lib/pkgconfig/
51-
rm -fr ipu6-camera-bins
52-
mkdir -p ./build/out/install/usr && cd ./build/
53-
cmake -DCMAKE_BUILD_TYPE=Release \
54-
-DIPU_VER="${{ matrix.version }}" \
55-
-DENABLE_VIRTUAL_IPU_PIPE=OFF \
56-
-DUSE_PG_LITE_PIPE=ON \
57-
-DUSE_STATIC_GRAPH=OFF \
58-
-DCMAKE_INSTALL_PREFIX=/usr ..
59-
make
56+
echo "" | apt-get install git build-essential cmake libexpat-dev automake libtool rpm libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev libdrm-dev libva-dev libunwind-dev libdrm-dev --yes
57+
58+
- uses: actions/checkout@v4
59+
with:
60+
repository: intel/icamerasrc
61+
ref: icamerasrc_slim_api
62+
path: icamerasrc
63+
64+
- name: Build test for ${{ matrix.version }} on ${{ matrix.os }}
65+
timeout-minutes: 10
66+
run: |
67+
cd "${GITHUB_WORKSPACE}/hal"
68+
69+
mkdir build && cd build
70+
cmake -DCMAKE_BUILD_TYPE=Release \
71+
-DCMAKE_INSTALL_PREFIX=/usr \
72+
-DCMAKE_INSTALL_LIBDIR=lib \
73+
-DBUILD_CAMHAL_TESTS=OFF \
74+
-DBUILD_CAMHAL_ADAPTOR=ON \
75+
-DBUILD_CAMHAL_PLUGIN=ON \
76+
-DIPU_VERSIONS="ipu6;ipu6ep;ipu6epmtl" \
77+
-DUSE_PG_LITE_PIPE=ON \
78+
..
79+
VERBOSE=1 make -j16
80+
make install
81+
82+
cd "${GITHUB_WORKSPACE}/icamerasrc"
83+
export CHROME_SLIM_CAMHAL=ON
84+
./autogen.sh
85+
./configure --prefix=/usr
86+
make -j16
87+
make rpm
6088
make install

0 commit comments

Comments
 (0)