<commit_before>#
# We Assume that the user has run cfglegato previously to make many
# environment variables exportable

# Cypress/Broadcom have there own set of environment vars that they need
# some are even defined the same - would be good to fix
# If your kernel headers are in a different place than mine - please
# modify the values appropriately

USAGE="Usage: $0 build_target_dir clean|modules"

if [ -z "$1" ] ; then
	echo $USAGE
	exit 2
fi

if [ -z "$2" ] ; then
	echo $USAGE
	exit 3
fi

export PATH=`findtoolchain ${LEGATO_TARGET} dir`:$PATH
export MY_KERNEL=`findtoolchain ${LEGATO_TARGET} kernelroot`
export KLIB=$MY_KERNEL
export KLIB_BUILD=$MY_KERNEL

# Need to change these if you want a different X-chain
export ARCH=arm
export CROSS_COMPILE=`findtoolchain ${LEGATO_TARGET} prefix`


# Lets do it
OLDPWD=`pwd`
cd ${MANGOH_ROOT}/build/${1}/modules/cypwifi
if [ "$2" == "clean" ] ; then
	make defconfig-brcmfmac
fi
make modules

if [ $? -ne 0 ] ; then
	cd $OLDPWD
	exit 1
else
	cd $OLDPWD
fi

<commit_msg>cypwifi: use findtoolchain relative to $LEGATO_ROOT<commit_after>#
# We Assume that the user has run cfglegato previously to make many
# environment variables exportable

# Cypress/Broadcom have there own set of environment vars that they need
# some are even defined the same - would be good to fix
# If your kernel headers are in a different place than mine - please
# modify the values appropriately

USAGE="Usage: $0 build_target_dir clean|modules"

if [ -z "$1" ] ; then
	echo $USAGE
	exit 2
fi

if [ -z "$2" ] ; then
	echo $USAGE
	exit 3
fi

FINDTOOLCHAIN=${LEGATO_ROOT}/bin/findtoolchain

export PATH=`${FINDTOOLCHAIN} ${LEGATO_TARGET} dir`:$PATH
export MY_KERNEL=`${FINDTOOLCHAIN} ${LEGATO_TARGET} kernelroot`
export KLIB=$MY_KERNEL
export KLIB_BUILD=$MY_KERNEL

# Need to change these if you want a different X-chain
export ARCH=arm
export CROSS_COMPILE=`${FINDTOOLCHAIN} ${LEGATO_TARGET} prefix`


# Lets do it
OLDPWD=`pwd`
cd ${MANGOH_ROOT}/build/${1}/modules/cypwifi
if [ "$2" == "clean" ] ; then
	make defconfig-brcmfmac
fi
make modules

if [ $? -ne 0 ] ; then
	cd $OLDPWD
	exit 1
else
	cd $OLDPWD
fi


{'fraction_non_alphanumeric': 0.09695550351288056, 'fraction_numerical': 0.008430913348946136, 'mean_word_length': 4.621052631578947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4025494', 'n_tokens_mistral': 776, 'n_tokens_neox': 737, 'n_words': 268}