Skip to contentSkip to conversation

pkg-config dependencies?

yocto Rob Prowel 1 participant 1 message Aug 17, 2020 1 message not in the archive

lore
Share & tools
lore

Rob Prowel

author
#1 lore raw
In reply to a message not in the archive
Quoted 2 lines · Rob Prowel

I'm trying to add the ipset utility to my arm build so that I can group IP/ports for use in tc and netfilter.  I was able to update the vendor supplied iptools2 recipe to install tc and iptables, but ipset is a fresh recipe, not included in another existing layer.

As a followup...

Some of the inheritance and dependencies of the thread referenced openWRT bb file was necessary to make it work.

Should note that inheriting autotools hopelessly breaks the build, but as shown below, the ipset utility is correctly staged in my target image, with no errors or warnings.

Thanks, all!

# -------------------------------------------------------------------- DEPENDS = "libtool libmnl"
RDEPENDS_${PN} = "kernel-module-ip-set"

SRC_URI = "file://ipset-7.6.tar.bz2;name=tar" SRC_URI[md5sum] = "e107b679c3256af795261cece864d6d9"

# inherit autotools pkgconfig module-base
inherit pkgconfig module-base

S = "${WORKDIR}/ipset-7.6"

EXTRA_OECONF += "-with-kbuild=${KBUILD_OUTPUT} --with-ksource=${STAGING_KERNEL_DIR}"

do_configure(){
        ./configure --prefix=/ --host=arm-vendor-linuxeabi
}
do_compile(){
        make DESTDIR=${D}
}
do_install(){
        oe_runmake install DESTDIR=${D}

        rm -rf ${D}/share
        rm -rf ${D}/include
        rm -rf ${D}/lib

}