Skip to content

Commit

Permalink
3.3 (#120)
Browse files Browse the repository at this point in the history
3.3.1 release
  • Loading branch information
haugoug authored Apr 13, 2020
1 parent 6ec40a6 commit 7d86516
Show file tree
Hide file tree
Showing 12 changed files with 3,036 additions and 22 deletions.
74 changes: 71 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ PULP_BRIDGE_PATH = $(GAP_SDK_HOME)/tools/pulp_tools/pulp-debug-bridge

ifeq ($(TARGET_CHIP_FAMILY), GAP8)
sdk: all autotiler nntool
all: pulp-os tools gvsoc flasher docs littlefs openocd
all: pulp-os tools gvsoc flasher docs littlefs.build openocd

clean:
$(RM) $(TARGET_INSTALL_DIR)
Expand All @@ -58,7 +58,7 @@ clean:

else
sdk: all autotiler
all: pulp-os gvsoc littlefs
all: pulp-os gvsoc littlefs.build

clean:
$(RM) $(TARGET_INSTALL_DIR)
Expand Down Expand Up @@ -137,7 +137,7 @@ LFS_MAKEFILE = $(LFS_BUILD_DIR)/Makefile

#include $(LFS_MAKEFILE)

littlefs: $(LFS_MAKEFILE)
littlefs.build: $(LFS_MAKEFILE)
make -C $(LFS_BUILD_DIR) all install

$(LFS_MAKEFILE): $(LFS_DIR)/CMakeLists.txt | $(LFS_BUILD_DIR)
Expand All @@ -146,6 +146,74 @@ $(LFS_MAKEFILE): $(LFS_DIR)/CMakeLists.txt | $(LFS_BUILD_DIR)
$(LFS_BUILD_DIR):
$(MKDIR) -p $@

littlefs.checkout:
git submodule update --init tools/littlefs

littlefs.all: littlefs.checkout littlefs.build



plptest.checkout:
git submodule update --init tools/plptest

plptest.build:
if [ -e tools/plptest ]; then cd tools/plptest && make build; fi

plptest.all: plptest.checkout plptest.build



gap-configs.checkout:
git submodule update --init tools/gap-configs

gap-configs.all: gap-configs.checkout



gapy.checkout: gap-configs.checkout
git submodule update --init tools/gapy

gapy.all: gapy.checkout gap-configs.all



tests.checkout:
git submodule update --init tests/pmsis_tests tests/bsp_tests


pulpos.checkout:
git submodule update --init rtos/pulp/pulpos-2 rtos/pulp/pulpos-2_gap8 rtos/pulp/pulpos-2_gap9 rtos/pulp/gap_archi rtos/pmsis/pmsis_api rtos/pmsis/pmsis_bsp

pulpos.all: pulpos.checkout


pmsis-bsp.checkout:
git submodule update --init rtos/pmsis/pmsis-bsp

pmsis-bsp.build:
$(MAKE) -C $(GAP_SDK_HOME)/rtos/pmsis/pmsis_bsp all

pmsis-bsp.all: pmsis-bsp.checkout pmsis-bsp.build


pulprt.checkout:
git submodule update --init rtos/pulp/pulp-os

pulprt.build:
$(MAKE) -C $(GAP_SDK_HOME)/rtos/pulp build.pulprt

pulprt.all: pulprt.checkout pulprt.build



gvsoc.checkout:
git submodule update --init gvsoc/gvsoc

gvsoc.build:
make -C gvsoc/gvsoc build BUILD_DIR=$(BUILD_DIR)/gvsoc INSTALL_DIR=$(INSTALL_DIR) TARGET_INSTALL_DIR=$(GAP_SDK_HOME)/install

gvsoc.all: gvsoc.checkout gvsoc.build



plptest.checkout:
Expand Down
42 changes: 42 additions & 0 deletions tools/plptest/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
TARGET_INSTALL_DIR ?= $(CURDIR)/install
INSTALL_DIR ?= $(CURDIR)/install
BUILD_DIR ?= $(CURDIR)/build

all: header build

export PYTHONPATH:=$(CURDIR)/bin:$(PYTHONPATH)

define declarePyInstallFile

$(INSTALL_DIR)/python/$(1): bin/$(1)
install -D bin/$(1) $$@

PY_INSTALL_HEADERS += $(INSTALL_DIR)/python/$(1)

endef

define declareInstallFile

$(INSTALL_DIR)/$(1): $(1)
install -D $(1) $$@

INSTALL_HEADERS += $(INSTALL_DIR)/$(1)

endef


PY_INSTALL_FILES += $(shell cd bin && find -name "*.py")
INSTALL_FILES += bin/plptest

$(INSTALL_DIR)/bin/plptest_checker: $(BUILD_DIR)/plptest_checker
install -D $< $@

$(BUILD_DIR)/plptest_checker: src/plptest_checker.c
mkdir -p $(BUILD_DIR)
gcc -O3 -g src/plptest_checker.c -o $(BUILD_DIR)/plptest_checker

$(foreach file, $(INSTALL_FILES), $(eval $(call declareInstallFile,$(file))))

$(foreach file, $(PY_INSTALL_FILES), $(eval $(call declarePyInstallFile,$(file))))

build: $(INSTALL_DIR)/bin/plptest_checker $(INSTALL_HEADERS) $(PY_INSTALL_HEADERS)
Loading

0 comments on commit 7d86516

Please sign in to comment.