Skip to content

Commit

Permalink
[Script] enable 32bit build for open linux
Browse files Browse the repository at this point in the history
Add 32 bit buildplan on ubuntu yaml
  • Loading branch information
stellawuintel committed Apr 18, 2023
1 parent d37ec9a commit 8ba25ea
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 1 deletion.
83 changes: 83 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -752,3 +752,86 @@ jobs:
..
make VERBOSE=1 -j$(nproc)
sudo make install
32bit:
runs-on: ubuntu-22.04
env:
CC: /usr/bin/i686-linux-gnu-gcc-11
CXX: /usr/bin/i686-linux-gnu-g++-11
ASM: /usr/bin/i686-linux-gnu-gcc-11
# machine: i386
steps:
- name: checkout media-driver
uses: actions/checkout@v2
with:
path: media
- name: checkout libva
uses: actions/checkout@v2
with:
repository: intel/libva
path: libva
- name: checkout gmmlib
uses: actions/checkout@v2
with:
repository: intel/gmmlib
path: gmmlib
- name: install prerequisites
run: |
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
automake \
cmake \
gcc \
g++ \
libtool \
debhelper:i386 \
debhelper-compat:i386 \
crossbuild-essential-i386 \
dpkg-cross \
g++-i686-linux-gnu \
gcc-i686-linux-gnu \
libc6-i386 \
libc6-dev-i386 \
libegl1-mesa-dev:i386 \
libgl1-mesa-dev:i386 \
libglx-dev:i386 \
libva-dev:i386 \
libdrm-dev:i386 \
libxext-dev:i386 \
libxfixes-dev:i386 \
libx32gcc-9-dev \
libx32gcc-9-dev-i386-cross \
pkg-config:i386 \
libxcb-dri3-dev:i386 \
libx11-dev:i386 \
libx11-xcb-dev:i386 \
libwayland-dev:i386 \
ninja-build:i386 \
make
sudo apt-get clean
- name: print tools versions
run: |
cmake --version
$CC --version
$CXX --version
- name: build libva
run: |
cd libva
./autogen.sh --prefix=/usr --libdir=/usr/lib/i386-linux-gnu --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
make -j$(nproc)
sudo make install
- name: build gmmlib
run: |
cd gmmlib
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/ -DCMAKE_BUILD_TYPE=Release -DARCH=32 -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32 -DCMAKE_C_COMPILER=/usr/bin/i686-linux-gnu-gcc -DCMAKE_CXX_COMPILER=/usr/bin/i686-linux-gnu-g++
make VERBOSE=1 -j$(nproc)
sudo make install
- name: build media-driver
run: |
cd media
mkdir build && cd build
cmake .. -DGMM_DYNAMIC_MOCS_TABLE=TRUE -DSKIP_GMM_CHECK=1 -DMEDIA_VERSION=2.0.0 -DBUILD_TYPE=release -DLIBVA_INSTALL_PATH=/usr/include -DCP_LIBDRM_DIR=/usr/lib/i386-linux-gnu -DCMAKE_INSTALL_PREFIX=/usr -DARCH=32 -DCMAKE_C_COMPILER=/usr/bin/i686-linux-gnu-gcc -DCMAKE_CXX_COMPILER=/usr/bin/i686-linux-gnu-g++ -DCMAKE_CXX_FLAGS=-m32 -DCMAKE_C_FLAGS=-m32
make VERBOSE=1 -j$(nproc)
sudo make install
2 changes: 1 addition & 1 deletion docs/media_features.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
| 4:0:0, 8-bit | 400P | 16K | BDW+ |
| 420 / 422H<br/>interleaved single scan | YUY2 | 16K | BDW+ |
| 420 / 422H<br/>interleaved single scan | UYVY | 16K | BDW+ |
| 420 / 422H / 422<br/>interleaved single scanV | NV12 | 16K | BDW+ |
| 420 / 422H / 422V<br/>interleaved single scan | NV12 | 16K | BDW+ |
| 400/420/422H/444/RGB/BGR<br/>interleaved single scan | A8R8G8B8 | 16K | SKL+ |

## Supported Encoding Input Format and Max Resolution
Expand Down

0 comments on commit 8ba25ea

Please sign in to comment.