# When building from a tarball we don't have some of the dependencies that are in
# the git repository as submodules
-MICROPYTHON_MAKE_OPTS = MICROPY_PY_BTREE=0
-MICROPYTHON_MAKE_OPTS += MICROPY_PY_USSL=0
+MICROPYTHON_MAKE_OPTS += \
+ MICROPY_PY_BTREE=0 \
+ MICROPY_PY_USSL=0 \
+ CROSS_COMPILE=$(TARGET_CROSS) \
+ CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
+ CWARN=
define MICROPYTHON_BUILD_CMDS
$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/mpy-cross
$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
- $(MICROPYTHON_MAKE_OPTS) \
- CROSS_COMPILE=$(TARGET_CROSS) \
- CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS)
+ $(MICROPYTHON_MAKE_OPTS)
endef
define MICROPYTHON_INSTALL_TARGET_CMDS
$(MICROPYTHON_MAKE_ENV) $(MAKE) -C $(@D)/ports/unix \
$(MICROPYTHON_MAKE_OPTS) \
- CROSS_COMPILE=$(TARGET_CROSS) \
- CFLAGS_EXTRA=$(MICROPYTHON_CFLAGS) \
DESTDIR=$(TARGET_DIR) \
PREFIX=/usr \
install