mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
With below logic in local.conf:
MACHINE ??= "qemumips64"
MULTILIB_GLOBAL_VARIANTS_append = " libn32"
MULTILIBS ?= "multilib:lib32 multilib:libn32"
DEFAULTTUNE_virtclass-multilib-lib32 ?= "mips"
DEFAULTTUNE_virtclass-multilib-libn32 ?= "mips64-n32"
require conf/multilib.conf
DEBUG_BUILD = "1"
$ bitbake lib32-kea
[snip]
{standard input}: Assembler messages:
{standard input}:305030: Error: branch out of range
{standard input}:305041: Error: branch out of range
{standard input}:305432: Error: branch out of range
{standard input}:305443: Error: branch out of range
Makefile:707: recipe for target 'dhcp4_parser.lo' failed
make[6]: *** [dhcp4_parser.lo] Error 1
[snip]
When DEBUG_BUILD enabled, -Og pass to compiler,
replace -Og with -O to fix the above compile error.
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
63 lines
2.4 KiB
BlitzBasic
63 lines
2.4 KiB
BlitzBasic
SUMMARY = "ISC Kea DHCP Server"
|
|
DESCRIPTION = "Kea is the next generation of DHCP software developed by ISC. It supports both DHCPv4 and DHCPv6 protocols along with their extensions, e.g. prefix delegation and dynamic updates to DNS."
|
|
HOMEPAGE = "http://kea.isc.org"
|
|
SECTION = "connectivity"
|
|
LICENSE = "MPL-2.0 & Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=2ed44ce4e0bbfdc1abfa6bf949b7ba3a"
|
|
|
|
DEPENDS += "kea-native"
|
|
|
|
SRC_URI = "\
|
|
http://ftp.isc.org/isc/kea/${PV}/${BP}.tar.gz \
|
|
file://0003-Makefile.am-update-hooksdir-for-lease_cmds.patch \
|
|
file://0001-remove-AC_TRY_RUN.patch \
|
|
file://kea-dhcp4.service \
|
|
file://kea-dhcp6.service \
|
|
file://kea-dhcp-ddns.service \
|
|
"
|
|
SRC_URI[md5sum] = "591d38e5fcc0251a8812e8bb1337578a"
|
|
SRC_URI[sha256sum] = "edce4fab68ca7af607cf7f5bc86596e04fe0ef4b8e88906e339cdefcf21daaec"
|
|
|
|
inherit autotools systemd
|
|
|
|
SYSTEMD_SERVICE_${PN} = "kea-dhcp4.service kea-dhcp6.service kea-dhcp-ddns.service"
|
|
SYSTEMD_AUTO_ENABLE = "disable"
|
|
|
|
DEBUG_OPTIMIZATION_remove_mips = " -Og"
|
|
DEBUG_OPTIMIZATION_append_mips = " -O"
|
|
BUILD_OPTIMIZATION_remove_mips = " -Og"
|
|
BUILD_OPTIMIZATION_append_mips = " -O"
|
|
|
|
DEBUG_OPTIMIZATION_remove_mipsel = " -Og"
|
|
DEBUG_OPTIMIZATION_append_mipsel = " -O"
|
|
BUILD_OPTIMIZATION_remove_mipsel = " -Og"
|
|
BUILD_OPTIMIZATION_append_mipsel = " -O"
|
|
|
|
do_configure_prepend_class-target() {
|
|
mkdir -p ${B}/src/lib/log/compiler/
|
|
ln -sf ${STAGING_BINDIR_NATIVE}/kea-msg-compiler ${B}/src/lib/log/compiler/kea-msg-compiler
|
|
}
|
|
|
|
do_install_append_class-target() {
|
|
install -d ${D}${systemd_system_unitdir}
|
|
install -m 0644 ${WORKDIR}/kea-dhcp*service ${D}${systemd_system_unitdir}
|
|
sed -i -e 's,@SBINDIR@,${sbindir},g' -e 's,@BASE_BINDIR@,${base_bindir},g' \
|
|
-e 's,@LOCALSTATEDIR@,${localstatedir},g' -e 's,@SYSCONFDIR@,${sysconfdir},g' \
|
|
${D}${systemd_system_unitdir}/kea-dhcp*service
|
|
}
|
|
|
|
do_install_append() {
|
|
rm -rf "${D}${localstatedir}"
|
|
}
|
|
|
|
PACKAGECONFIG ??= "openssl log4cplus boost"
|
|
|
|
PACKAGECONFIG[openssl] = "--with-openssl=${STAGING_DIR_TARGET}${prefix},,openssl,openssl"
|
|
PACKAGECONFIG[log4cplus] = "--with-log4cplus=${STAGING_DIR_TARGET}${prefix},,log4cplus,log4cplus"
|
|
PACKAGECONFIG[boost] = "--with-boost-include=${STAGING_INCDIR} --with-boost-lib-dir=${STAGING_LIBDIR} --with-boost-libs=-lboost_system,,boost,boost"
|
|
|
|
FILES_${PN}-staticdev += "${libdir}/kea/hooks/*.a ${libdir}/hooks/*.a"
|
|
FILES_${PN} += "${libdir}/hooks/*.so"
|
|
|
|
BBCLASSEXTEND += "native"
|