Skip to content

Commit

Permalink
remove some xenial and old scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
AviaAv committed Jul 31, 2024
1 parent 3d4398f commit db61752
Show file tree
Hide file tree
Showing 35 changed files with 21 additions and 5,467 deletions.
51 changes: 0 additions & 51 deletions scripts/patch-hid-16.04.sh

This file was deleted.

24 changes: 10 additions & 14 deletions scripts/patch-realsense-ubuntu-lts-hwe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,31 +95,27 @@ k_tick=$(echo ${kernel_version[2]} | awk -F'-' '{print $2}')
[ $k_maj_min -ge 600 ] && skip_plf_patch=1
[ $k_maj_min -ge 605 ] && skip_md_patch=1

# Construct branch name from distribution codename {xenial,bionic,..} and kernel version
# Construct branch name from distribution codename {bionic,focal...} and kernel version
# ubuntu_codename=`. /etc/os-release; echo ${UBUNTU_CODENAME/*, /}`
ubuntu_codename=${ubuntu_codename:-$(lsb_release -c|cut -f2)}
if [ -z "${ubuntu_codename}" ];
then
# Trusty Tahr shall use xenial code base
ubuntu_codename="xenial"
# Trusty Tahr shall use bionic code base
ubuntu_codename="bionic"
retpoline_retrofit=1
fi

kernel_branch=$(choose_kernel_branch ${LINUX_BRANCH} ${ubuntu_codename})
kernel_name="ubuntu-${ubuntu_codename}"
echo -e "\e[32mCreate patches workspace in \e[93m${kernel_name} \e[32mfolder\n\e[0m"

#Distribution-specific packages
if { [ ${ubuntu_codename} != "xenial" ]; } ;
then
require_package libelf-dev
require_package elfutils
#Ubuntu 18.04 kernel 4.18 + 20.04/ 5.4
require_package bison
require_package flex
# required if kernel >=5.11
require_package dwarves
fi
require_package libelf-dev
require_package elfutils
#Ubuntu 18.04 kernel 4.18 + 20.04/ 5.4
require_package bison
require_package flex
# required if kernel >=5.11
require_package dwarves

# Get the linux kernel and change into source tree
if [ ! -d ${kernel_name} ]; then
Expand Down
6 changes: 3 additions & 3 deletions scripts/patch-realsense-ubuntu-lts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ if [[ ( ${xhci_patch} -eq 1 ) && ( ${k_maj_min} -ne 404 ) ]]; then
exit 1
fi

# Construct branch name from distribution codename {xenial,bionic,..} and kernel version
# Construct branch name from distribution codename {bionic, focal...} and kernel version
ubuntu_codename=`. /etc/os-release; echo ${UBUNTU_CODENAME/*, /}`
if [ -z "${ubuntu_codename}" ];
then
# Trusty Tahr shall use xenial code base
ubuntu_codename="xenial"
# Trusty Tahr shall use bionic code base
ubuntu_codename="bionic"
retpoline_retrofit=1
fi

Expand Down
8 changes: 0 additions & 8 deletions scripts/patch-realsense-ubuntu-odroid-xu4-4.14.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ PLATFORM=$(uname -n)
#fi
kernel_branch="master"
echo "Kernel branch: " $kernel_branch
# Construct branch name from distribution codename {xenial,bionic,..} and kernel version
#ubuntu_codename=`. /etc/os-release; echo ${UBUNTU_CODENAME/*, /}`
#if [ -z "$UBUNTU_CODENAME" ];
#then
# Trusty Tahr shall use xenial code base
# ubuntu_codename="xenial"
# retpoline_retrofit=1
#fi
ubuntu_codename="bionic"

#kernel_name="ubuntu-${ubuntu_codename}-$kernel_branch"
Expand Down
6 changes: 3 additions & 3 deletions scripts/patch-realsense-ubuntu-odroid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ else
kernel_branch=$(choose_kernel_branch $LINUX_BRANCH)
fi
echo "Kernel branch: " $kernel_branch
# Construct branch name from distribution codename {xenial,bionic,..} and kernel version
# Construct branch name from distribution codename {bionic, focal...} and kernel version
ubuntu_codename=`. /etc/os-release; echo ${UBUNTU_CODENAME/*, /}`
if [ -z "$UBUNTU_CODENAME" ];
then
# Trusty Tahr shall use xenial code base
ubuntu_codename="xenial"
# Trusty Tahr shall use bionic code base
ubuntu_codename="bionic"
retpoline_retrofit=1
fi

Expand Down
91 changes: 0 additions & 91 deletions scripts/patch-realsense-ubuntu-xenial-joule.sh

This file was deleted.

6 changes: 3 additions & 3 deletions scripts/patch-ubuntu-kernel-4.16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ retpoline_retrofit=0

LINUX_BRANCH=$(uname -r)

# Construct branch name from distribution codename {xenial,bionic,..} and kernel version
# Construct branch name from distribution codename {bionic, focal...} and kernel version
ubuntu_codename=`. /etc/os-release; echo ${UBUNTU_CODENAME/*, /}`
if [ -z "${ubuntu_codename}" ];
then
# Trusty Tahr shall use xenial code base
ubuntu_codename="xenial"
# Trusty Tahr shall use bionic code base
ubuntu_codename="bionic"
retpoline_retrofit=1
fi

Expand Down
36 changes: 1 addition & 35 deletions scripts/patch-utils-hwe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ function require_package {
fi
}

#Based on the current kernel version select the branch name to fetch the kernel source code
# The reference name are pulled here : http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/
# As of Jun 19
# Branch Commit message Author Age
# hwe UBUNTU: Ubuntu-hwe-4.15.0-24.26~16.04.1 Andy Whitcroft 6 days
# hwe-edge UBUNTU: Ubuntu-hwe-4.15.0-23.25~16.04.1 Kleber Sacilotto de Souza 4 weeks
# hwe-zesty UBUNTU: Ubuntu-hwe-4.10.0-43.47~16.04.1 Thadeu Lima de Souza Cascardo 6 months
# master UBUNTU: Ubuntu-4.4.0-128.154 Stefan Bader 4 weeks
# master-next UBUNTU: SAUCE: Redpine: fix soft-ap invisible issue Sanjay Kumar Konduri 2 days

# As of Jun 21, 2020
#Ubuntu bionic repo : http://kernel.ubuntu.com/git/ubuntu/ubuntu-bionic.git/
# hwe UBUNTU: Ubuntu-hwe-5.3.0-56.50~18.04.1 Kleber Sacilotto de Souza 3 weeks
Expand All @@ -47,31 +37,7 @@ function choose_kernel_branch {
# Split the kernel version string
IFS='.' read -a kernel_version <<< "$1"

if [ "$2" == "xenial" ];
then
case "${kernel_version[1]}" in
"4") # Kernel 4.4. is managed on master branch
echo master
;;
"8") # kernel 4.8 is deprecated and available via explicit tags. Currently on 4.8.0-58
echo Ubuntu-hwe-4.8.0-58.63_16.04.1
;;
"10") # kernel 4.10 is managed on branch hwe-zesty as of 1.1.2018
echo hwe-zesty
;;
"13") # kernel 4.13 is on hwe branch and replaced with 4.15. Provide source from a tagged version instead (back-compat)
echo Ubuntu-hwe-4.13.0-45.50_16.04.1
;;
"15") # kernel 4.15 for Ubuntu xenial is either hwe or hwe-edge
echo hwe
;;
*)
#error message shall be redirected to stderr to be printed properly
echo -e "\e[31mUnsupported kernel version $1 . The patches are maintained for Ubuntu16 (Xenial) with LTS kernel versions 4.4, 4.8, 4.10, 4.13 and 4.15\e[0m" >&2
exit 1
;;
esac
elif [ "$2" == "bionic" ];
if [ "$2" == "bionic" ];
then
case "${kernel_version[0]}.${kernel_version[1]}" in
"4.15") # kernel 4.15 for Ubuntu 18/Bionic Beaver
Expand Down
35 changes: 1 addition & 34 deletions scripts/patch-utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ function require_package {
fi
}

#Based on the current kernel version select the branch name to fetch the kernel source code
# The reference name are pulled here : http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/
# As of Jun 19
# Branch Commit message Author Age
# hwe UBUNTU: Ubuntu-hwe-4.15.0-24.26~16.04.1 Andy Whitcroft 6 days
# hwe-edge UBUNTU: Ubuntu-hwe-4.15.0-23.25~16.04.1 Kleber Sacilotto de Souza 4 weeks
# hwe-zesty UBUNTU: Ubuntu-hwe-4.10.0-43.47~16.04.1 Thadeu Lima de Souza Cascardo 6 months
# master UBUNTU: Ubuntu-4.4.0-128.154 Stefan Bader 4 weeks
# master-next UBUNTU: SAUCE: Redpine: fix soft-ap invisible issue Sanjay Kumar Konduri 2 days

# As of Jun 21, 2020
#Ubuntu bionic repo : http://kernel.ubuntu.com/git/ubuntu/ubuntu-bionic.git/
Expand All @@ -47,31 +38,7 @@ function choose_kernel_branch {
# Split the kernel version string
IFS='.' read -a kernel_version <<< "$1"

if [ "$2" == "xenial" ];
then
case "${kernel_version[1]}" in
"4") # Kernel 4.4. is managed on master branch
echo master
;;
"8") # kernel 4.8 is deprecated and available via explicit tags. Currently on 4.8.0-58
echo Ubuntu-hwe-4.8.0-58.63_16.04.1
;;
"10") # kernel 4.10 is managed on branch hwe-zesty as of 1.1.2018
echo hwe-zesty
;;
"13") # kernel 4.13 is on hwe branch and replaced with 4.15. Provide source from a tagged version instead (back-compat)
echo Ubuntu-hwe-4.13.0-45.50_16.04.1
;;
"15") # kernel 4.15 for Ubuntu xenial is either hwe or hwe-edge
echo hwe
;;
*)
#error message shall be redirected to stderr to be printed properly
echo -e "\e[31mUnsupported kernel version $1 . The patches are maintained for Ubuntu16 (Xenial) with LTS kernel versions 4.4, 4.8, 4.10, 4.13 and 4.15\e[0m" >&2
exit 1
;;
esac
elif [ "$2" == "bionic" ];
if [ "$2" == "bionic" ];
then
case "${kernel_version[0]}.${kernel_version[1]}" in
"4.15") # kernel 4.15 for Ubuntu 18/Bionic Beaver
Expand Down
45 changes: 0 additions & 45 deletions scripts/patch-uvcvideo-16.04.simple.sh

This file was deleted.

Loading

0 comments on commit db61752

Please sign in to comment.