<commit_before>DESCRIPTION = "Installkit for kexecboot-kernel"
DEPENDS = "${@base_conditional('MACHINE', 'collie', 'linux-kexecboot', 'zaurus-updater linux-kexecboot', d)}"
LICENSE = "zaurus-installer"
PR = "r1"

PACKAGES = ""
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = '(collie|poodle|c7x0|spitz|akita|tosa)'

S = "${WORKDIR}"

do_configure() {
}

do_compile() {
}

do_deploy() {

	cd ${DEPLOY_DIR_IMAGE}
	rm -rf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}/         
	mkdir installkit-${MACHINE}/

	[ -f "${KERNEL_IMAGETYPE}-kexecboot-${MACHINE}.bin" ] && cp ${KERNEL_IMAGETYPE}-kexecboot-${MACHINE}.bin installkit-${MACHINE}/${KERNEL_IMAGETYPE}

	if [ ! "${MACHINE}" = "collie" ]; then
		cp updater.sh.${MACHINE} installkit-${MACHINE}/updater.sh
	fi
 
	tar czf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz installkit-${MACHINE}/
	md5sum ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz > ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz.md5
	rm -rf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}/     
}

addtask deploy before do_build after do_compile<commit_msg>zaurus-installer: remove trailing tabs<commit_after>DESCRIPTION = "Installkit for kexecboot-kernel"
DEPENDS = "${@base_conditional('MACHINE', 'collie', 'linux-kexecboot', 'zaurus-updater linux-kexecboot', d)}"
LICENSE = "zaurus-installer"
PR = "r1"

PACKAGES = ""
PACKAGE_ARCH = "${MACHINE_ARCH}"
COMPATIBLE_MACHINE = '(collie|poodle|c7x0|spitz|akita|tosa)'

S = "${WORKDIR}"

do_configure() {
}

do_compile() {
}

do_deploy() {

	cd ${DEPLOY_DIR_IMAGE}
	rm -rf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}/
	mkdir installkit-${MACHINE}/

	[ -f "${KERNEL_IMAGETYPE}-kexecboot-${MACHINE}.bin" ] && cp ${KERNEL_IMAGETYPE}-kexecboot-${MACHINE}.bin installkit-${MACHINE}/${KERNEL_IMAGETYPE}

	if [ ! "${MACHINE}" = "collie" ]; then
		cp updater.sh.${MACHINE} installkit-${MACHINE}/updater.sh
	fi
 
	tar czf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz installkit-${MACHINE}/
	md5sum ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz > ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}.tar.gz.md5
	rm -rf ${DEPLOY_DIR_IMAGE}/installkit-${MACHINE}/
}

addtask deploy before do_build after do_compile
{'fraction_non_alphanumeric': 0.1824918943955535, 'fraction_numerical': 0.004631773969430292, 'mean_word_length': 5.813880126182966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5513233', 'n_tokens_mistral': 929, 'n_tokens_neox': 890, 'n_words': 124}