summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cdrtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-11-02 12:02:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-11-05 11:28:35 +0000
commitbdc0251ab394602975c33a61f76bc6b791d0d2d5 (patch)
tree2cec15ecf977a5075185d4ee07190270cd8c6a7e /meta/recipes-devtools/cdrtools
parent769abe5702021ee477adc361e230a438f7a6810b (diff)
downloadpoky-bdc0251ab394602975c33a61f76bc6b791d0d2d5.tar.gz
cdrtools: Fix build on riscv64
Copy riscv64 gcc config from schilytools (From OE-Core rev: c2daccdeb5b49de67c62e78f90b0bb4d481d67e3) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cdrtools')
-rw-r--r--meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb9
-rw-r--r--meta/recipes-devtools/cdrtools/cdrtools/riscv64-linux-gcc.rul65
2 files changed, 74 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb b/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb
index 757132eae6..bf8be1ad0c 100644
--- a/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb
+++ b/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb
@@ -8,9 +8,12 @@ SECTION = "console/utils"
8LICENSE = "GPL-2.0-only & CDDL-1.0 & LGPL-2.1-or-later" 8LICENSE = "GPL-2.0-only & CDDL-1.0 & LGPL-2.1-or-later"
9LIC_FILES_CHKSUM = "file://COPYING;md5=32f68170be424c2cd64804337726b312" 9LIC_FILES_CHKSUM = "file://COPYING;md5=32f68170be424c2cd64804337726b312"
10 10
11DEPENDS += "gnu-config-native"
12
11SRC_URI = " \ 13SRC_URI = " \
12 ${SOURCEFORGE_MIRROR}/project/cdrtools/cdrtools-${PV}.tar.bz2 \ 14 ${SOURCEFORGE_MIRROR}/project/cdrtools/cdrtools-${PV}.tar.bz2 \
13 file://0001-Don-t-set-uid-gid-during-install.patch \ 15 file://0001-Don-t-set-uid-gid-during-install.patch \
16 file://riscv64-linux-gcc.rul \
14 " 17 "
15 18
16SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b" 19SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b"
@@ -23,6 +26,12 @@ export ac_cv_prog_CC = "${CC}"
23 26
24inherit native 27inherit native
25 28
29do_configure() {
30 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/autoconf
31 install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/autoconf
32 install -m 0644 ${WORKDIR}/riscv64-linux-gcc.rul ${S}/RULES/
33}
34
26do_install() { 35do_install() {
27 make install GMAKE_NOWARN=true INS_BASE=${prefix} DESTDIR=${D} 36 make install GMAKE_NOWARN=true INS_BASE=${prefix} DESTDIR=${D}
28} 37}
diff --git a/meta/recipes-devtools/cdrtools/cdrtools/riscv64-linux-gcc.rul b/meta/recipes-devtools/cdrtools/cdrtools/riscv64-linux-gcc.rul
new file mode 100644
index 0000000000..3e930225dc
--- /dev/null
+++ b/meta/recipes-devtools/cdrtools/cdrtools/riscv64-linux-gcc.rul
@@ -0,0 +1,65 @@
1#ident "@(#)i586-linux-gcc.rul 1.18 18/11/07 "
2###########################################################################
3# Written 1996-2018 by J. Schilling
4###########################################################################
5#
6# Platform dependent MACROS for Linux
7#
8###########################################################################
9# Copyright (c) J. Schilling
10###########################################################################
11# The contents of this file are subject to the terms of the
12# Common Development and Distribution License, Version 1.0 only
13# (the "License"). You may not use this file except in compliance
14# with the License.
15#
16# See the file CDDL.Schily.txt in this distribution for details.
17# A copy of the CDDL is also available via the Internet at
18# http://www.opensource.org/licenses/cddl1.txt
19#
20# When distributing Covered Code, include this CDDL HEADER in each
21# file and include the License file CDDL.Schily.txt from this distribution.
22###########################################################################
23include $(SRCROOT)/$(RULESDIR)/rules.prg
24###########################################################################
25include $(SRCROOT)/$(RULESDIR)/cc-$(C_ARCH).rul
26
27#
28# LINUX_SRC_INCLUDE is defined in DEFAULTS/Defaults.linux
29#
30INCDIRSX += $(LINUX_SRC_INCLUDE)
31OSDEFS +=
32
33KDEFINES= -DKERNEL -D_KERNEL
34
35LIB_PREFIX= lib
36LIB_SUFFIX= .a
37SHL_SUFFIX= .so.$(DYNMAJOR).$(DYNMINOR)
38
39LIB_SOCKET=
40LIB_MATH= -lm
41LIB_KVM=
42
43#
44# Sunpro C/C++ run on Solaris and Linux and both have linkers
45# that support mapfiles
46#
47MAPVERS= $(_MAPVERS) # This enables to use mapfiles
48#
49# The GNU linker is buggy and does not like the official order in linker map
50# files for symbol versioning. The following command reverses the order of
51# the version names in the linker map file.
52#
53MAPFILE_POST= | sed 's/^SCHILY/+SCHILY/' | tr '\012' '@' | tr '+' '\012' | sort -V | tr '@' '\012'
54
55#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH:-R%=-Wl,-R%)
56#
57# Uncomment the next line in case you are on an old Linux version that
58# does not support the -R linker flag.
59#
60#LDOPTS= $(LIBS_PATH) $(LDPATH)
61LDOPTMAP= $(PMAPVERS:%=-Wl,--version-script=%)
62LDOPTDYN= -shared -Wl,-soname,$(TARGET) $(LDOPTMAP)
63
64LORDER= echo
65TSORT= cat