<commit_before>#
# Copyright (c) BayLibre 2016
# 
# Please create a link to this file from
# the project toplevel, and invoke with
# make from there.
#
# ln -s meta-baylibre/Makefile Makefile
#


BUILD_SCRIPT := meta-baylibre/build.sh

SHELL := /bin/bash
MY_BUILDDIR ?= build
OUTDIR = $(MY_BUILDDIR)
IMAGENAME ?= baylibre-acme-image

# Set number of threads
NUM_THREADS ?= 16

.PHONY: $(MY_BUILDDIR)

COMMON_ARGS := ${BUILD_SCRIPT} \
                                -p poky/ \
                                -o meta-openembedded/ \
                                -x "kernel/.git" \
                                -j $(NUM_THREADS) \
                                -t $(NUM_THREADS) \
				-i $(IMAGENAME)

COMMON_BIN := \
                ${COMMON_ARGS} \
                -m beaglebone-acme \
                -b $(MY_BUILDDIR) \

all: sdcard

distclean:
	rm -rf $(MY_BUILDDIR)

clean:
	-@cd $(MY_BUILDDIR) && bitbake -c clean  u-boot
	-@cd $(MY_BUILDDIR) && bitbake -c clean  $(IMAGENAME)
	-@cd $(MY_BUILDDIR) && bitbake -c clean  linux-yocto-mainline
	-@cd $(MY_BUILDDIR) && bitbake -c clean  acme-utils

$(MY_BUILDDIR):
	$(COMMON_BIN)

sdcard: $(MY_BUILDDIR)
	mkdir -p $(OUTDIR)
	source poky/oe-init-build-env && bitbake -e > ../$(OUTDIR)/$(IMAGENAME).env
	source poky/oe-init-build-env && ../poky/scripts/wic create ../meta-baylibre/sdimage-bootpart.wks -e $(IMAGENAME) -o $(CURDIR)/$(OUTDIR)

sdk: $(MY_BUILDDIR)
	source poky/oe-init-build-env && bitbake $(IMAGENAME) -c populate_sdk
<commit_msg>Fix clean rule<commit_after>#
# Copyright (c) BayLibre 2016
# 
# Please create a link to this file from
# the project toplevel, and invoke with
# make from there.
#
# ln -s meta-baylibre/Makefile Makefile
#


BUILD_SCRIPT := meta-baylibre/build.sh

SHELL := /bin/bash
MY_BUILDDIR ?= build
OUTDIR = $(MY_BUILDDIR)
IMAGENAME ?= baylibre-acme-image

# Set number of threads
NUM_THREADS ?= 16

.PHONY: $(MY_BUILDDIR)

COMMON_ARGS := ${BUILD_SCRIPT} \
                                -p poky/ \
                                -o meta-openembedded/ \
                                -x "kernel/.git" \
                                -j $(NUM_THREADS) \
                                -t $(NUM_THREADS) \
				-i $(IMAGENAME)

COMMON_BIN := \
                ${COMMON_ARGS} \
                -m beaglebone-acme \
                -b $(MY_BUILDDIR) \

all: sdcard

distclean:
	rm -rf $(MY_BUILDDIR)

clean:
	-source poky/oe-init-build-env && bitbake -c clean  u-boot
	-source poky/oe-init-build-env && bitbake -c clean  $(IMAGENAME)
	-source poky/oe-init-build-env && bitbake -c clean  linux-yocto-mainline
	-source poky/oe-init-build-env && bitbake -c clean  acme-utils

$(MY_BUILDDIR):
	$(COMMON_BIN)

sdcard: $(MY_BUILDDIR)
	mkdir -p $(OUTDIR)
	source poky/oe-init-build-env && bitbake -e > ../$(OUTDIR)/$(IMAGENAME).env
	source poky/oe-init-build-env && ../poky/scripts/wic create ../meta-baylibre/sdimage-bootpart.wks -e $(IMAGENAME) -o $(CURDIR)/$(OUTDIR)

sdk: $(MY_BUILDDIR)
	source poky/oe-init-build-env && bitbake $(IMAGENAME) -c populate_sdk

{'fraction_non_alphanumeric': 0.1429977041653001, 'fraction_numerical': 0.003935716628402755, 'mean_word_length': 2.0964467005076144, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '268677', 'n_tokens_mistral': 1199, 'n_tokens_neox': 1148, 'n_words': 250}