Whamcloud - gitweb
LU-16322: build: Add client build support for openEuler
[fs/lustre-release.git] / contrib / lbuild / funcs.sh
index f448e03..949beeb 100644 (file)
@@ -154,6 +154,11 @@ autodetect_distro() {
             "Fedora")
                 name="fc"
                 ;;
+           "openEuler")
+               name="oe"
+               # Change from YY.MM to YYMM, let DISTROMAJ contain MM part
+               version=${version/./}
+               ;;
             *)
                 fatal 1 "I don't know what distro name $name and version $version is.\nEither update autodetect_distro() or use the --distro argument."
                 ;;
@@ -205,6 +210,7 @@ autodetect_target() {
         sles15.3) target="$(uname -r | cut -d . -f 1,2)-sles15sp3";;
        sles15.4) target="$(uname -r | cut -d . -f 1,2)-sles15sp4";;
           fc18)   target="3.x-fc18";;
+         oe2203) target="5.10-oe2203";;
              *)   fatal 1 "I don't know what distro $distro is.\nEither update autodetect_target() or use the --target argument.";;
     esac