<commit_before>DESCRIPTION = "AM SysInfo"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_sysinfo/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://mem_util/mem_util.c;beginline=1;endline=37;md5=8aa8e714ab729cfe8177298af8a5a25d"

SECTION = "system"

PACKAGE_STRIP = "no"
PR = "r9"

BRANCH ?= "master"
SRCREV = "5df7da69a50d27b7f594db0918c5e6793c3a6237"

SRC_URI = "git://git.ti.com/apps/am_sysinfo.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile() {

	export CROSS_COMPILE=${TARGET_PREFIX}
	export CFLAGS='${TARGET_CC_ARCH}'
	# build the release version
	oe_runmake release
}

do_install() {
	install -d ${D}/${bindir}
	install -m 0755 ${S}/mem_util/Release/mem_util ${D}/${bindir}<commit_msg>am-sysinfo: fix build with any toolchain, pass CC var<commit_after>SUMMARY = "AM SysInfo"
HOMEPAGE = "https://gforge.ti.com/gf/project/am_sysinfo/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://mem_util/mem_util.c;beginline=1;endline=37;md5=8aa8e714ab729cfe8177298af8a5a25d"

SECTION = "system"

PACKAGE_STRIP = "no"
PR = "r10"

BRANCH ?= "master"
SRCREV = "5df7da69a50d27b7f594db0918c5e6793c3a6237"

SRC_URI = "git://git.ti.com/apps/am_sysinfo.git;protocol=git;branch=${BRANCH}"

S = "${WORKDIR}/git"

do_compile() {
	export CROSS_COMPILE=${TARGET_PREFIX}
	export CFLAGS='${TARGET_CC_ARCH}'
	# build the release version
	oe_runmake release CC="${CC}"
}

do_install() {
	install -d ${D}/${bindir}
	install -m 0755 ${S}/mem_util/Release/mem_util ${D}/${bindir}
{'fraction_non_alphanumeric': 0.1645051194539249, 'fraction_numerical': 0.07440273037542662, 'mean_word_length': 6.116504854368932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3832460', 'n_tokens_mistral': 697, 'n_tokens_neox': 639, 'n_words': 94}