Skip to content

Commit

Permalink
Experimental reduction of memory size
Browse files Browse the repository at this point in the history
  • Loading branch information
c-mauderer committed Dec 20, 2024
1 parent 918c025 commit 45a92e5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 9 deletions.
24 changes: 17 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ SRC_BLAS = $(MAKEFILE_DIR)/external/lapack
BUILD_LOGS = $(MAKEFILE_DIR)/build
BUILD_OPENOCD = $(MAKEFILE_DIR)/build/b-openocd
LIBBSD_BUILDSET = $(MAKEFILE_DIR)/src/libbsd.ini
LIBBSD_NANO_BUILDSET = $(MAKEFILE_DIR)/src/libbsd-nano.ini
CMAKE_TOOLCHAIN_TEMPLATE = $(MAKEFILE_DIR)/cryptoauthlib/grisp2-toolchain.cmake.in
CMAKE_TOOLCHAIN_CONFIG = $(PREFIX)/share/grisp2-toolchain.cmake
PACKAGE_DIR = package
Expand Down Expand Up @@ -170,13 +171,6 @@ $(PREFIX)/make/custom/$(BSP_GRISP_NANO).mk: src/bsp.mk
#H Build and install libbsd.
libbsd:
rm -rf $(SRC_LIBBSD)/build
cd $(SRC_LIBBSD) && ./waf configure \
--prefix=$(PREFIX) \
--rtems-bsps=$(ARCH)/$(BSP_GRISP2),$(ARCH)/$(BSP_GRISP1),$(ARCH)/$(BSP_GRISP_NANO) \
--enable-warnings \
--optimization=$(OPTIMIZATION) \
--buildset=$(LIBBSD_BUILDSET) \
--rtems-version=$(RTEMS_VERSION)
# Workaround for GRiSP1 and Nano
[ ! -e "$(PREFIX)/$(TARGET)/$(BSP_GRISP1)/lib/linkcmds.org" ] && \
mv "$(PREFIX)/$(TARGET)/$(BSP_GRISP1)/lib/linkcmds" \
Expand All @@ -191,6 +185,22 @@ libbsd:
echo "INCLUDE linkcmds.ospi" > \
"$(PREFIX)/$(TARGET)/$(BSP_GRISP_NANO)/lib/linkcmds"
# End of workaround for GRiSP1 and Nano
cd $(SRC_LIBBSD) && ./waf configure \
--prefix=$(PREFIX) \
--rtems-bsps=$(ARCH)/$(BSP_GRISP2),$(ARCH)/$(BSP_GRISP1) \
--enable-warnings \
--optimization=$(OPTIMIZATION) \
--buildset=$(LIBBSD_BUILDSET) \
--rtems-version=$(RTEMS_VERSION)
cd $(SRC_LIBBSD) && ./waf
cd $(SRC_LIBBSD) && ./waf install
cd $(SRC_LIBBSD) && ./waf configure \
--prefix=$(PREFIX) \
--rtems-bsps=$(ARCH)/$(BSP_GRISP_NANO) \
--enable-warnings \
--optimization=$(OPTIMIZATION) \
--buildset=$(LIBBSD_NANO_BUILDSET) \
--rtems-version=$(RTEMS_VERSION)
cd $(SRC_LIBBSD) && ./waf
cd $(SRC_LIBBSD) && ./waf install
# Workarounds for GRiSP1 and Nano
Expand Down
2 changes: 1 addition & 1 deletion external/libgrisp
Submodule libgrisp updated 1 files
+11 −0 src/init.c
11 changes: 11 additions & 0 deletions src/libbsd-nano.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[general]
name = grisp-nano

[modules]
base = on
cam = on
mmc = on
mmc_ti = on
fdt = on
rtems = on
user_space = on

0 comments on commit 45a92e5

Please sign in to comment.