Files
openwrt_yocto/meta-openwrt/recipes-tweaks/iptables/iptables_1.8.%.bbappend
T
francis.wang 4c86c082a2 Initial commit: OpenWrt-Yocto monorepo
Combine poky (Yocto scarthgap), meta-openembedded (scarthgap), and
meta-openwrt into a single repository.

Components:
- poky/             Yocto core framework (BitBake + OE-Core)
- meta-openembedded/ Community layers (meta-oe, meta-python, meta-networking)
- meta-openwrt/     OpenWrt customization layer
- setup-env.sh      One-click build environment setup
- README.md         Project documentation
2026-07-11 13:28:01 +08:00

34 lines
962 B
Plaintext

# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
# Released under the MIT license (see COPYING.MIT for the terms)
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
XTLIBDIR = "${libdir}/iptables"
EXTRA_OECONF += "--enable-shared --disable-static --with-xtlibdir=${XTLIBDIR}"
SRC_URI += "file://600-shared-libext.patch \
file://601-Fix-out-of-tree-build.patch \
file://200-configurable_builtin.patch \
"
LDFLAGS += "-fuse-ld=bfd"
python populate_packages:prepend() {
modules = do_split_packages(d, '${XTLIBDIR}', r'lib(.*)\.so$', '${PN}-module-%s', '${PN} module %s', extra_depends='', prepend=True)
if modules:
metapkg = d.getVar('PN') + '-modules'
d.appendVar('RDEPENDS:' + metapkg, ' ' + ' '.join(modules))
}
do_install:append() {
install -d ${D}${libdir}
install -m 0644 ${B}/extensions/libiptext*.so ${D}${libdir}
}
FILES:${PN} += "${libdir}/*.so"
FILES_SOLIBSDEV = ""
INSANE_SKIP:${PN} = "dev-so"