summaryrefslogtreecommitdiff
path: root/target/frosted/Makefile
blob: 4845ddab5dd51e368fa82ebb318e6bcbcc805920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

prepare:
	if [ ! -d $(BUILD_DIR)/frosted ]; then \
	cd $(BUILD_DIR) ;\
		git clone https://github.com/insane-adding-machines/frosted.git ;\
		cd frosted ;\
		git submodule update --init --recursive ;\
	fi
	cp $(BUILD_DIR)/.frosted $(BUILD_DIR)/frosted/kconfig/.config
	cp $(BUILD_DIR)/.frostedapps $(BUILD_DIR)/frosted/frosted-userland/kconfig/.config

compile:
	PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted/frosted-userland $(MAKE_TRACE)
	PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted $(MAKE_TRACE)

install:
	@cp $(BUILD_DIR)/frosted/image.bin $(FW_DIR)

targethelp:
	@echo "Use following command to flash:"
	@echo "$(STAGING_HOST_DIR)/usr/bin/st-flash write $(FW_DIR)/image.bin 0x08000000"

clean:
	@PATH='$(HOST_PATH)' $(MAKE) -C $(BUILD_DIR)/frosted clean