Cross-compilation capability for OHOS system support.

Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/I9GMT2

Signed-off-by: liujia178 <liujia178@huawei.com>
Change-Id: Ia5e34dbbe7f4166ea405264fdbcb61ef275e1ab8
This commit is contained in:
liujia178 2024-04-20 15:07:39 +08:00 committed by worker
parent 5150f5dcc9
commit a89010b8cc
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- libedit/config.sub 2021-09-11 00:40:21.000000000 +0800
+++ libedit/config.sub 2024-03-11 15:51:40.009858928 +0800
@@ -1738,7 +1738,7 @@
| skyos* | haiku* | rdos* | toppers* | drops* | es* \
| onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
| midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
- | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*)
+ | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | ohos*)
;;
# This one is extra strict with allowed versions
sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
@@ -1775,6 +1775,8 @@
;;
*-eabi* | *-gnueabi*)
;;
+ *-ohos)
+ ;;
-*)
# Blank kernel with real OS is always fine.
;;

View File

@ -8,6 +8,10 @@ License: BSD
URL: http://www.thrysoee.dk/editline/
Source0: https://www.thrysoee.dk/editline/%{name}-%{_date}-%{version}.tar.gz
# OHOS_LOCAL
Patch0: cross_compile_support_ohos.patch
BuildRequires: gcc, ncurses-devel
%description
@ -69,6 +73,13 @@ sed -i "s/ -lncurses//" libedit.pc
%exclude %{_mandir}/man3/history.3*
%changelog
# OHOS_LOCAL begin
* Fri Mar 15 2024 liujia178 <liujia178@huawei.com> - 3.1-oh-0
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:cross-compilation capability for OHOS system support.
# OHOS_LOCAL end
* Tue Oct 25 2022 yanglongkang<yanglongkang@h-partners.com> - 3.1-29
- Type: bugfix
- ID: NA