Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
946d0c297c
!33 [sync] PR-28: Fix secure compile option error in Makefile
From: @openeuler-sync-bot 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2024-08-23 02:14:25 +00:00
root
eb1144ea4f Fix secure compile option error in Makefile
dtc rpm包会生成dtc bin和libfdt.so,-fPIE不作用于libfdt.so,其他应用(如qemu)调用libfdt.so时会出现段错误,使用-fPIC代替-fPIE。

(cherry picked from commit ab331cd570d21fd494bb63a81ea9a1c6e958e65c)
2024-08-22 15:38:45 +08:00
openeuler-ci-bot
e32ac13f46
!22 [sync] PR-20: enable make check
From: @openeuler-sync-bot 
Reviewed-by: @gaoruoshu 
Signed-off-by: @gaoruoshu
2023-05-30 02:16:56 +00:00
fly_fzc
6cfa92486f enable make check
(cherry picked from commit 1759ef81c513c3f499cfa2ff97bd5c2d94ab6018)
2023-05-30 09:46:45 +08:00
openeuler-ci-bot
114dc90b81
!14 【轻量级 PR】:rebuild for next release
From: @markeryang 
Reviewed-by: @xiezhipeng1 
Signed-off-by: @xiezhipeng1
2022-10-26 07:56:30 +00:00
Markeryang
e4a587de02
update for mass rebuild and upgrade verification 2022-10-26 02:17:59 +00:00
openeuler-ci-bot
b2f925b909 !12 update version to 1.6.1
Merge pull request !12 from 杨壮壮/openEuler-22.03-LTS-Next
2021-12-14 09:26:26 +00:00
yang_zhuang_zhuang
692ec88c50 update version to 1.6.1 2021-11-27 15:18:17 +08:00
openeuler-ci-bot
754e26b283 !9 dtc:Add secure compile option in Makefile
From: @openeuler-basic
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
2021-03-20 17:37:19 +08:00
Yangyang Shen
16c934334b Add secure compile option in Makefile 2021-03-20 16:45:08 +08:00
5 changed files with 95 additions and 2 deletions

Binary file not shown.

BIN
dtc-1.6.1.tar.xz Normal file

Binary file not shown.

View File

@ -1,8 +1,8 @@
%define _wrong_version_format_terminate_build 0
Name: dtc
Version: 1.6.0
Release: 2
Version: 1.6.1
Release: 4
Summary: Device tree compiler
License: GPLv2+
URL: https://devicetree.org/
@ -13,6 +13,11 @@ BuildRequires: python3-devel python3-setuptools
Provides: libfdt
Obsoletes: libfdt
Patch1: openEuler-add-secure-compile-option-in-Makefile.patch
%ifarch ppc64le
Patch2: fix-secure-compile-option-error-in-Makefile.patch
%endif
%description
The devicetree is a data structure for describing hardware. Rather than hard coding
@ -51,6 +56,9 @@ This package provides python3 bindings for libfdt
make install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1
%check
%make_build check
%pre
%preun
@ -78,6 +86,36 @@ make install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
%doc Documentation/manual.txt
%changelog
* Mon Jul 8 2024 fuanan <yingjun.ni@shingroup.cn> - 1.6.1-4
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: fix secure compile option error in Makefile
* Thu May 25 2023 fuanan <fuanan3@h-partners.com> - 1.6.1-3
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: enable make check
* Wed Oct 26 2022 yanglongkang<yanglongkang@h-partners.com> - 1.6.1-2
- Type: bugfix
- ID: NA
- SUG: NA
- DESC: rebuild for next release
* Sat Nov 27 2021 yangzhuangzhuang<yangzhuangzhuang1@huawei.com> - 1.6.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 1.6.1
* Sat Mar 20 2021 shenyangyang<shenyangyang4@huawei.com> - 1.6.0-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:Add secure compile option in Makefile
* Wed Sep 9 2020 wangchen<wangchen137@huawei.com> - 1.6.0-2
- Type:enhancement
- ID:NA

View File

@ -0,0 +1,30 @@
From 5a190c01ddc7b7f8d8eb44595d2b478582463ae9 Mon Sep 17 00:00:00 2001
From: Yingjun Ni <yingjun.ni@shingroup.cn>
Date: Mon, 8 Jul 2024 09:57:55 +0800
Subject: [PATCH] Fix secure compile option error in Makefile.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
dtc rpm包会生成dtc bin和libfdt.so-fPIE不作用于libfdt.so其他应用(如qemu)调用libfdt.so时会出现段错误使用-fPIC代替-fPIE。
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 5b72f66..278692d 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ CONFIG_LOCALVERSION =
# See libfdt_internal.h for details
ASSUME_MASK ?= 0
-EXTRA_CFLAGS += -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wl,-z,now -fPIE
+EXTRA_CFLAGS += -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wl,-z,now -fPIC
LDFLAGS += -Wl,-z,now -pie
CPPFLAGS = -I libfdt -I . -DFDT_ASSUME_MASK=$(ASSUME_MASK)
WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
--
2.33.0

View File

@ -0,0 +1,25 @@
From 1c3f9fea2f808ae9eb481bc344ff589b42a106a7 Mon Sep 17 00:00:00 2001
From: Yangyang Shen <shenyangyang4@huawei.com>
Date: Sat, 20 Mar 2021 16:40:13 +0800
Subject: [PATCH] openEuler add secure compile option in Makefile
---
Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Makefile b/Makefile
index f02aa19..a37a2db 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,8 @@ CONFIG_LOCALVERSION =
# See libfdt_internal.h for details
ASSUME_MASK ?= 0
+EXTRA_CFLAGS += -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wl,-z,now -fPIE
+LDFLAGS += -Wl,-z,now -pie
CPPFLAGS = -I libfdt -I . -DFDT_ASSUME_MASK=$(ASSUME_MASK)
WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
-Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow
--
2.23.0