<commit_before>DESCRIPTION = "Driver for zd1211 family of wireless USB Dongles"
PRIORITY = "optional"
SECTION = "kernel/modules"
MAINTAINER = "<NAME> <<EMAIL>>"
LICENSE = "GPL"
PR = "r1"
RDEPENDS = "wireless-tools"

SRC_URI = "http://zd1211.ath.cx/download/zd1211-driver-${PV}.tgz \
           file://makefile.patch;patch=1" 

SRC_URI_unslung = "http://zd1211.ath.cx/download/zd1211-driver-${PV}.tgz \
       	file://makefile-unslung.patch;patch=1 \
        file://unslung-iwpriv-hack.patch;patch=1 \
        file://unslung-writel-logging.patch;patch=1"

S = "${WORKDIR}/zd1211-driver-${PV}"

inherit module

do_compile () {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
        oe_runmake 'MODPATH={D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net' \
                   'KERNEL_SOURCE=${STAGING_KERNEL_DIR}' \
                   'KDIR=${STAGING_KERNEL_DIR}' \
                   'KERNEL_VERSION=${KERNEL_VERSION}' \
                   'CC=${KERNEL_CC}' \
                   'LD=${KERNEL_LD}' 
}

do_install() {   
        install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
        install -m 0644 ${S}/zd1211*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
}<commit_msg>zd1211: Add HOMEPAGE, sanitize<commit_after>DESCRIPTION = "Driver for zd1211 family of wireless USB Dongles"
HOMEPAGE = "http://zd1211.ath.cx/"
SECTION = "kernel/modules"
PRIORITY = "optional"
MAINTAINER = "<NAME> <<EMAIL>>"
LICENSE = "GPL"
RDEPENDS = "wireless-tools"
PR = "r1"

SRC_URI = "http://zd1211.ath.cx/download/zd1211-driver-${PV}.tgz \
           file://makefile.patch;patch=1"
SRC_URI_unslung = "http://zd1211.ath.cx/download/zd1211-driver-${PV}.tgz \
        file://makefile-unslung.patch;patch=1 \
        file://unslung-iwpriv-hack.patch;patch=1 \
        file://unslung-writel-logging.patch;patch=1"

S = "${WORKDIR}/zd1211-driver-${PV}"

inherit module

do_compile () {
        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
        oe_runmake 'MODPATH={D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net' \
                   'KERNEL_SOURCE=${STAGING_KERNEL_DIR}' \
                   'KDIR=${STAGING_KERNEL_DIR}' \
                   'KERNEL_VERSION=${KERNEL_VERSION}' \
                   'CC=${KERNEL_CC}' \
                   'LD=${KERNEL_LD}'
}

do_install() {
        install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
        install -m 0644 ${S}/zd1211*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
}
{'fraction_non_alphanumeric': 0.16497659906396256, 'fraction_numerical': 0.031981279251170044, 'mean_word_length': 2.9461538461538463, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6513722', 'n_tokens_mistral': 967, 'n_tokens_neox': 903, 'n_words': 123}