Skip to content

Commit

Permalink
amyrepl target works
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed Jan 1, 2025
1 parent 2050fd8 commit ee202a2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
18 changes: 13 additions & 5 deletions tulip/amyrepl/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
################################################################################
# Initial setup of Makefile environment.

TOP = ../../micropython

# Set parallel flag to # of CPUs
CPUS ?= $(shell sysctl -n hw.ncpu || echo 1)
MAKEFLAGS += --jobs=$(CPUS)

# Select the variant to build for:
ifdef VARIANT_DIR
# Custom variant path - remove trailing slash and get the final component of
Expand All @@ -17,9 +23,9 @@ $(error Invalid VARIANT specified: $(VARIANT_DIR))
endif

# If the build directory is not given, make it reflect the variant name.
BUILD ?= build-$(VARIANT)
BUILD ?= build-$(VARIANT)/tulip/obj

include ../../py/mkenv.mk
include $(TOP)/py/mkenv.mk
include $(VARIANT_DIR)/mpconfigvariant.mk

# Use the default frozen manifest, variants may override this.
Expand All @@ -44,10 +50,12 @@ INC += -I.
INC += -I$(TOP)
INC += -I$(BUILD)
INC += -I$(VARIANT_DIR)
INC += -I../../../tulip/shared/ulab/code/
INC += -I../shared/
INC += -I../shared/ulab/code/
INC += -I../shared/desktop/


ULAB_DIR = ../../../tulip/shared/ulab/code
ULAB_DIR = ../shared/ulab/code
EXTMOD_SRC_C += $(addprefix $(ULAB_DIR)/, \
scipy/integrate/integrate.c \
scipy/linalg/linalg.c \
Expand Down Expand Up @@ -86,7 +94,7 @@ EXTMOD_SRC_C += $(addprefix $(ULAB_DIR)/, \


CFLAGS += -std=c99 -Wall -Werror -Wdouble-promotion -Wfloat-conversion
CFLAGS += -Os -DNDEBUG -DMODULE_ULAB_ENABLED=1
CFLAGS += -Os -DNDEBUG -DMODULE_ULAB_ENABLED=1 -DAMY_IS_EXTERNAL
CFLAGS += $(INC)

EXPORTED_FUNCTIONS_EXTRA += ,\
Expand Down
1 change: 1 addition & 0 deletions tulip/amyrepl/variants/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# runtime (with setTimeout an Promise's) to contrtol the scheduling.
freeze("../../../../amy", "amy.py")
freeze("../../../../amy/experiments", "tulip_piano.py")
freeze("../../../../amy/experiments", "piano_params.py")
freeze("../../../../amy", "juno.py")

package(
Expand Down
1 change: 0 additions & 1 deletion tulip/web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ VARIANT ?= standard
VARIANT_DIR ?= variants/$(VARIANT)
endif


ifeq ($(wildcard $(VARIANT_DIR)/.),)
$(error Invalid VARIANT specified: $(VARIANT_DIR))
endif
Expand Down

0 comments on commit ee202a2

Please sign in to comment.