Add H2/H3 legacy branch support

This commit is contained in:
leeboby
2020-12-21 11:13:58 +08:00
parent f58af2f7d3
commit 04ecc49ba9
56 changed files with 15450 additions and 331 deletions

4
external/packages/extras-buildpkgs/00-libdri2.conf vendored Normal file → Executable file
View File

@@ -12,10 +12,10 @@ local package_component="${release}-desktop"
package_checkbuild()
{
[[ $release == jessie ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
package_checkinstall()
{
[[ $LINUXFAMILY == sun*i && $BRANCH == legacy && $RELEASE == jessie && $BUILD_DESKTOP == yes ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $RELEASE == xenial && $BUILD_DESKTOP == yes ]]
}

5
external/packages/extras-buildpkgs/04-libvdpau.conf vendored Normal file → Executable file
View File

@@ -11,11 +11,12 @@ local package_component="${release}-desktop"
package_checkbuild()
{
false
# we don't support running kernels < 3.13 on Stretch or Bionic
[[ $release != xenial && $release != stretch && $release != bionic && $release != disco && $release != buster && $release != focal ]]
#[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
package_checkinstall()
{
[[ $LINUXFAMILY == sun*i && $BRANCH == legacy && $RELEASE != stretch && $RELEASE != bionic && $BUILD_DESKTOP == yes ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}

5
external/packages/extras-buildpkgs/05-libump.conf vendored Normal file → Executable file
View File

@@ -11,11 +11,10 @@ local package_component="${release}-desktop"
package_checkbuild()
{
# we don't support running kernels < 3.13 on Stretch or Bionic
[[ $arch == armhf && $release != stretch && $release != bionic && $release != buster && $release != disco ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
package_checkinstall()
{
[[ $LINUXFAMILY == sun*i && $BRANCH == legacy && $RELEASE != stretch && $RELEASE != bionic && $BUILD_DESKTOP == yes ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}

5
external/packages/extras-buildpkgs/06-libcedrus.conf vendored Normal file → Executable file
View File

@@ -11,11 +11,10 @@ local package_component="${release}-desktop"
package_checkbuild()
{
# we don't support running kernels < 3.13 on Stretch or Bionic
[[ $release != stretch && $release != bionic && $release != buster && $release != disco ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
package_checkinstall()
{
[[ $LINUXFAMILY == sun*i && $RELEASE != stretch && $RELEASE != bionic && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}

6
external/packages/extras-buildpkgs/06-xf86-video-fbturbo.conf vendored Normal file → Executable file
View File

@@ -11,12 +11,10 @@ local package_component="${release}-desktop"
package_checkbuild()
{
# we don't support running kernels < 3.13 on Stretch or Bionic
[[ $release != stretch && $release != bionic ]]
[[ $release != stretch && $release != bionic && $release != buster && $release != disco ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
package_checkinstall()
{
[[ $LINUXFAMILY == sun*i && $RELEASE != stretch && $RELEASE != bionic && $BUILD_DESKTOP == yes && $BRANCH == default ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}

View File

@@ -10,7 +10,7 @@ local package_component="${release}-desktop"
package_checkbuild()
{
# until we have access to properly licensed arm64 mali binary drivers
[[ $arch == armhf ]]
[[ $arch == armhf && $RELEASE != xenial ]]
}
package_checkinstall()

View File

@@ -9,7 +9,7 @@ local package_component="${release}-utils"
package_checkbuild()
{
true
[[ $RELEASE != xenial ]]
}
package_checkinstall()

5
external/packages/extras-buildpkgs/90-libglshim.conf vendored Normal file → Executable file
View File

@@ -9,11 +9,10 @@ local package_component="${release}-desktop"
package_checkbuild()
{
# we don't support running kernels < 3.13 on Stretch or Bionic
[[ $arch == armhf && $release != stretch && $release != bionic && $release != buster && $release != disco && $release != focal ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
package_checkinstall()
{
[[ $LINUXFAMILY == sun[4578]i && $BRANCH == legacy && $RELEASE != stretch && $RELEASE != bionic && $BUILD_DESKTOP == yes ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}

5
external/packages/extras-buildpkgs/90-libmali-sunxi-r3p0.conf vendored Normal file → Executable file
View File

@@ -11,11 +11,10 @@ local package_component="${release}-desktop"
package_checkbuild()
{
# we don't support running kernels < 3.13 on Stretch or Bionic
[[ $arch == armhf && $release != stretch && $release != bionic && $release != buster && $release != disco && $release != focal ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}
package_checkinstall()
{
[[ $LINUXFAMILY == sun[4578]i && $BRANCH == default && $RELEASE != stretch && $RELEASE != bionic && $BUILD_DESKTOP == yes ]]
[[ $LINUXFAMILY == sun8i && $BRANCH == legacy && $BUILD_DESKTOP == yes ]]
}

View File

@@ -7,7 +7,7 @@ local package_component="${release}-utils"
package_checkbuild()
{
true
[[ $RELEASE != xenial ]]
}
package_checkinstall()

View File

@@ -9,7 +9,7 @@ local package_component="${release}-utils"
package_checkbuild()
{
true
[[ $RELEASE != xenial ]]
}
package_checkinstall()

View File

@@ -14,7 +14,6 @@ Homepage: https://github.com/linux-sunxi/sunxi-mali/
Package: libmali-sunxi-r3p0
Architecture: any
Pre-Depends:
orangepi-bsp,
${misc:Pre-Depends}
Depends:
${shlibs:Depends},

View File

@@ -7,7 +7,7 @@ LINUXFAMILY=""
case "$1" in
install)
if [ -z "$BRANCH" ] || [ "$BRANCH" != "default" ]; then
if [ -z "$BRANCH" ] || [ "$BRANCH" != "legacy" ]; then
echo "Mali binary driver can be used only with legacy kernel" 1>&2
exit 1
fi