diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-11-02 12:02:57 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-05 11:28:35 +0000 |
| commit | bdc0251ab394602975c33a61f76bc6b791d0d2d5 (patch) | |
| tree | 2cec15ecf977a5075185d4ee07190270cd8c6a7e /meta/recipes-devtools/cdrtools | |
| parent | 769abe5702021ee477adc361e230a438f7a6810b (diff) | |
| download | poky-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.bb | 9 | ||||
| -rw-r--r-- | meta/recipes-devtools/cdrtools/cdrtools/riscv64-linux-gcc.rul | 65 |
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" | |||
| 8 | LICENSE = "GPL-2.0-only & CDDL-1.0 & LGPL-2.1-or-later" | 8 | LICENSE = "GPL-2.0-only & CDDL-1.0 & LGPL-2.1-or-later" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=32f68170be424c2cd64804337726b312" | 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=32f68170be424c2cd64804337726b312" |
| 10 | 10 | ||
| 11 | DEPENDS += "gnu-config-native" | ||
| 12 | |||
| 11 | SRC_URI = " \ | 13 | SRC_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 | ||
| 16 | SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b" | 19 | SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b" |
| @@ -23,6 +26,12 @@ export ac_cv_prog_CC = "${CC}" | |||
| 23 | 26 | ||
| 24 | inherit native | 27 | inherit native |
| 25 | 28 | ||
| 29 | do_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 | |||
| 26 | do_install() { | 35 | do_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 | ########################################################################### | ||
| 23 | include $(SRCROOT)/$(RULESDIR)/rules.prg | ||
| 24 | ########################################################################### | ||
| 25 | include $(SRCROOT)/$(RULESDIR)/cc-$(C_ARCH).rul | ||
| 26 | |||
| 27 | # | ||
| 28 | # LINUX_SRC_INCLUDE is defined in DEFAULTS/Defaults.linux | ||
| 29 | # | ||
| 30 | INCDIRSX += $(LINUX_SRC_INCLUDE) | ||
| 31 | OSDEFS += | ||
| 32 | |||
| 33 | KDEFINES= -DKERNEL -D_KERNEL | ||
| 34 | |||
| 35 | LIB_PREFIX= lib | ||
| 36 | LIB_SUFFIX= .a | ||
| 37 | SHL_SUFFIX= .so.$(DYNMAJOR).$(DYNMINOR) | ||
| 38 | |||
| 39 | LIB_SOCKET= | ||
| 40 | LIB_MATH= -lm | ||
| 41 | LIB_KVM= | ||
| 42 | |||
| 43 | # | ||
| 44 | # Sunpro C/C++ run on Solaris and Linux and both have linkers | ||
| 45 | # that support mapfiles | ||
| 46 | # | ||
| 47 | MAPVERS= $(_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 | # | ||
| 53 | MAPFILE_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) | ||
| 61 | LDOPTMAP= $(PMAPVERS:%=-Wl,--version-script=%) | ||
| 62 | LDOPTDYN= -shared -Wl,-soname,$(TARGET) $(LDOPTMAP) | ||
| 63 | |||
| 64 | LORDER= echo | ||
| 65 | TSORT= cat | ||
