mirror of
https://git.yoctoproject.org/poky
synced 2026-02-25 19:09:41 +01:00
libubootenv: Backport patch to support builds with CMake 4+
Commit [0] has been merged upstream, but there hasn't been a release containing it
yet.
[0]: cd12d9dd2b
(From OE-Core rev: 133b793830b1a30a79465fe4511029010f9a2c68)
Signed-off-by: Moritz Haase <Moritz.Haase@bmw.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
94dc7be66d
commit
c20a75dd5b
@@ -0,0 +1,50 @@
|
||||
From cd12d9dd2bea8e4580f458df77229477fc55ba70 Mon Sep 17 00:00:00 2001
|
||||
From: James Hilliard <james.hilliard1@gmail.com>
|
||||
Date: Wed, 14 May 2025 14:17:40 -0600
|
||||
Subject: [PATCH] Update cmake_minimum_required to 3.5
|
||||
|
||||
This supports compilation with cmake-4.0.0.
|
||||
|
||||
Fixes:
|
||||
CMake Error at CMakeLists.txt:5 (cmake_minimum_required):
|
||||
Compatibility with CMake < 3.5 has been removed from CMake.
|
||||
|
||||
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
|
||||
to tell CMake that the project requires at least <min> but has been updated
|
||||
to work with policies introduced by <max> or earlier.
|
||||
|
||||
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
||||
|
||||
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
|
||||
Upstream-Status: Backport [cd12d9dd2bea8e4580f458df77229477fc55ba70]
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
src/CMakeLists.txt | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 796d7bc..0a11730 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
-cmake_minimum_required (VERSION 2.6)
|
||||
+cmake_minimum_required (VERSION 3.5)
|
||||
project (libubootenv C)
|
||||
|
||||
# The version number.
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index c56d0c7..3370232 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
# SPDX-FileCopyrightText: 2019-2021 Stefano Babic <stefano.babic@swupdate.org>
|
||||
#
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
-cmake_minimum_required (VERSION 2.6)
|
||||
+cmake_minimum_required (VERSION 3.5)
|
||||
# Sources and private headers
|
||||
SET(libubootenv_SOURCES
|
||||
uboot_env.c
|
||||
@@ -10,7 +10,9 @@ LICENSE = "LGPL-2.1-or-later"
|
||||
LIC_FILES_CHKSUM = "file://LICENSES/LGPL-2.1-or-later.txt;md5=4fbd65380cdd255951079008b364516c"
|
||||
SECTION = "libs"
|
||||
|
||||
SRC_URI = "git://github.com/sbabic/libubootenv;protocol=https;branch=master"
|
||||
SRC_URI = "git://github.com/sbabic/libubootenv;protocol=https;branch=master \
|
||||
file://0001-Update-cmake_minimum_required-to-3.5.patch \
|
||||
"
|
||||
SRCREV = "5507339628b5caf244e1ff9d58cb3fa534b16beb"
|
||||
|
||||
inherit cmake lib_package
|
||||
|
||||
Reference in New Issue
Block a user