[build] Rename the build folder to scripts

This commit is contained in:
Romain Goyet
2019-03-05 17:25:12 +01:00
committed by LeaNumworks
parent 4f2c7a3763
commit 2af792cf88
24 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
include build/config.mak
include scripts/config.mak
# Disable default Make rules
.SUFFIXES:
@@ -62,8 +62,8 @@ include python/Makefile
include escher/Makefile
# Executable Makefiles
include apps/Makefile
include build/struct_layout/Makefile
include build/scenario/Makefile
include scripts/struct_layout/Makefile
include scripts/scenario/Makefile
include quiz/Makefile # Quiz needs to be included at the end
objs = $(call object_for,$(src))
@@ -121,4 +121,4 @@ cowsay_%:
.PHONY: clena
clena: cowsay_CLENA clean
-include build/targets.$(PLATFORM).mak
-include scripts/targets.$(PLATFORM).mak

View File

@@ -13,15 +13,15 @@ EPSILON_GETOPT ?= 0
MATRICES_ARE_DEFINED ?=1
ESCHER_LOG_EVENTS_BINARY ?= 0
include build/defaults.mak
include build/platform.$(PLATFORM).mak
include scripts/defaults.mak
include scripts/platform.$(PLATFORM).mak
ifndef USE_LIBA
$(error platform.mak should define USE_LIBA)
endif
ifndef EXE
$(error platform.mak should define EXE, the extension for executables)
endif
include build/toolchain.$(TOOLCHAIN).mak
include scripts/toolchain.$(TOOLCHAIN).mak
SFLAGS += -DDEBUG=$(DEBUG)
SFLAGS += -DEPSILON_ONBOARDING_APP=$(EPSILON_ONBOARDING_APP)

View File

@@ -1,4 +1,4 @@
products += apps/main.ast build/struct_layout/data.json
products += apps/main.ast scripts/struct_layout/data.json
.PHONY: apps_container_struct_layout
OPEN = open
@@ -11,10 +11,10 @@ ifeq ($(CXX),clang++)
%.ast.json: %.ast
@echo "JSON $@"
@cat $< | ruby build/struct_layout/ast_to_json.rb AppsContainer > $@
@cat $< | ruby scripts/struct_layout/ast_to_json.rb AppsContainer > $@
apps_container_struct_layout: apps/main.ast.json
$(OPEN) build/struct_layout/visualization.html
$(OPEN) scripts/struct_layout/visualization.html
else

View File

@@ -25,7 +25,7 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products)))
.PHONY: %_run
%_run: %.$(EXE)
$(GDB) -x build/device/gdb_script.gdb $<
$(GDB) -x scripts/device/gdb_script.gdb $<
%.map: %.elf
@echo "LDMAP $@"
@@ -34,7 +34,7 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products)))
.PHONY: %_memory_map
%_memory_map: %.map
@echo "========== MEMORY MAP ========="
$(Q) awk -f build/device/memory_map.awk < $<
$(Q) awk -f scripts/device/memory_map.awk < $<
@echo "==============================="
.PHONY: %_flash
@@ -48,7 +48,7 @@ products += $(patsubst %.$(EXE),%.map,$(filter %.$(EXE),$(products)))
.PHONY: openocd
openocd:
openocd -f build/device/openocd.cfg
openocd -f scripts/device/openocd.cfg
ifeq ($(EPSILON_USB_DFU_XIP)$(EPSILON_DEVICE_BENCH),10)
flasher.$(EXE): LDFLAGS = --gc-sections -T ion/src/device/usb/flasher.ld