barebox: update to 2017.11.0, fix x86 builds
[openadk.git] / target / frosted / Makefile
blob4845ddab5dd51e368fa82ebb318e6bcbcc805920
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include $(ADK_TOPDIR)/rules.mk
6 prepare:
7 if [ ! -d $(BUILD_DIR)/frosted ]; then \
8 cd $(BUILD_DIR) ;\
9 git clone https://github.com/insane-adding-machines/frosted.git ;\
10 cd frosted ;\
11 git submodule update --init --recursive ;\
13 cp $(BUILD_DIR)/.frosted $(BUILD_DIR)/frosted/kconfig/.config
14 cp $(BUILD_DIR)/.frostedapps $(BUILD_DIR)/frosted/frosted-userland/kconfig/.config
16 compile:
17 PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted/frosted-userland $(MAKE_TRACE)
18 PATH='$(HOST_PATH)' $(MAKE) V=1 -C $(BUILD_DIR)/frosted $(MAKE_TRACE)
20 install:
21 @cp $(BUILD_DIR)/frosted/image.bin $(FW_DIR)
23 targethelp:
24 @echo "Use following command to flash:"
25 @echo "$(STAGING_HOST_DIR)/usr/bin/st-flash write $(FW_DIR)/image.bin 0x08000000"
27 clean:
28 @PATH='$(HOST_PATH)' $(MAKE) -C $(BUILD_DIR)/frosted clean