<commit_before>
include $(EVRYTHNG_MARVELL_SDK_PATH)/config.mk

ifeq ($(NOISY),1)
AT=
else
AT=@
endif

UNTAR=tar --skip-old-files -xf
RMRF=rm -rf
MAKE=make
PATCH=patch -p1 -N -s <
CHDIR=cd

WMSDK_BUNDLE=$(notdir $(WMSDK_BUNDLE_PATH))
WMSDK_BUNDLE_DIR=$(EVRYTHNG_MARVELL_SDK_PATH)/$(patsubst %.tar.gz,%,$(WMSDK_BUNDLE))
WMSDK_PATH=$(WMSDK_BUNDLE_DIR)/bin/wmsdk

SDK_PATH=$(WMSDK_PATH)

ifeq ($(BOARD),mw300)
BOARD_FW_PARTITION=mcufw
BOARD_FILE=$(SDK_PATH)/boards/mw300_rd.c
endif

ifeq ($(BOARD),mc200_8801)
BOARD_FW_PARTITION=mc200fw
endif

export WMSDK_BUNDLE_DIR BOARD SDK_PATH

ifeq ($(BOARD),mw300)
export BOARD_FILE
endif

.PHONY: wmsdk wmsdk_clean wmsdk_unpack lib lib_clean

libevrythng: wmsdk
	$(AT)$(MAKE) -C $(EVRYTHNG_MARVELL_SDK_PATH)/lib SDK_PATH=$(WMSDK_PATH) BOARD=$(BOARD)

libevrythng_clean:
	$(AT)$(MAKE) -C $(EVRYTHNG_MARVELL_SDK_PATH)/lib clean SDK_PATH=$(WMSDK_PATH)


wmsdk: wmsdk_unpack
	$(AT)$(MAKE) -C $(WMSDK_BUNDLE_DIR) $(BOARD)_defconfig
	$(AT)$(MAKE) -C $(WMSDK_BUNDLE_DIR) BOARD=$(BOARD) sdk

wmsdk_clean:
	$(AT)$(RMRF) $(WMSDK_BUNDLE_DIR)

wmsdk_unpack:
	$(AT)$(UNTAR) $(WMSDK_BUNDLE_PATH) -C $(EVRYTHNG_MARVELL_SDK_PATH)
	-$(AT)$(CHDIR) $(EVRYTHNG_MARVELL_SDK_PATH) && $(PATCH) remove_old_evt_lib.patch<commit_msg>added macros; build defconfig if no config present<commit_after>
include $(EVRYTHNG_MARVELL_SDK_PATH)/config.mk

ifeq ($(NOISY),1)
AT=
else
AT=@
endif

UNTAR=tar --skip-old-files -xf
RMRF=rm -rf
MAKE=make
PATCH=patch -p1 -N -s <
CHDIR=cd
COPY=cp

WMSDK_BUNDLE=$(notdir $(WMSDK_BUNDLE_PATH))
WMSDK_BUNDLE_DIR=$(EVRYTHNG_MARVELL_SDK_PATH)/$(patsubst %.tar.gz,%,$(WMSDK_BUNDLE))
WMSDK_PATH=$(WMSDK_BUNDLE_DIR)/bin/wmsdk

SDK_PATH=$(WMSDK_PATH)
SDK_DIR=$(WMSDK_BUNDLE_DIR)/wmsdk

ifeq ($(BOARD),mw300)
BOARD_FW_PARTITION=mcufw
BOARD_FILE=$(SDK_PATH)/boards/mw300_rd.c
endif

ifeq ($(BOARD),mc200_8801)
BOARD_FW_PARTITION=mc200fw
endif

export WMSDK_BUNDLE_DIR BOARD SDK_PATH SDK_DIR

ifeq ($(BOARD),mw300)
export BOARD_FILE
endif

.PHONY: wmsdk wmsdk_clean wmsdk_unpack lib lib_clean

libevrythng: wmsdk
	$(AT)$(MAKE) -C $(EVRYTHNG_MARVELL_SDK_PATH)/lib SDK_PATH=$(WMSDK_PATH) BOARD=$(BOARD)

libevrythng_clean:
	$(AT)$(MAKE) -C $(EVRYTHNG_MARVELL_SDK_PATH)/lib clean SDK_PATH=$(WMSDK_PATH)


wmsdk: wmsdk_unpack
	if [ ! -e $(WMSDK_BUNDLE_DIR)/wmsdk/.config ]; then $(AT)$(MAKE) -C $(WMSDK_BUNDLE_DIR) $(BOARD)_defconfig; fi;
	$(AT)$(MAKE) -C $(WMSDK_BUNDLE_DIR) BOARD=$(BOARD) sdk

wmsdk_clean:
	$(AT)$(RMRF) $(WMSDK_BUNDLE_DIR)

wmsdk_unpack:
	$(AT)$(UNTAR) $(WMSDK_BUNDLE_PATH) -C $(EVRYTHNG_MARVELL_SDK_PATH)
	-$(AT)$(CHDIR) $(EVRYTHNG_MARVELL_SDK_PATH) && $(PATCH) remove_old_evt_lib.patch
{'fraction_non_alphanumeric': 0.15857359635811835, 'fraction_numerical': 0.015933232169954476, 'mean_word_length': 7.79, 'pattern_counts': {'":': 0, '<': 5, '<?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': '438188', 'n_tokens_mistral': 1395, 'n_tokens_neox': 1296, 'n_words': 186}