wip; fix generators; typos

This commit is contained in:
Dan Halbert 2023-08-12 17:28:32 -04:00
parent 433059023d
commit 850877a85f
4 changed files with 4 additions and 5 deletions

View File

@ -628,6 +628,6 @@ $(BUILD)/frozen_mpy: $(FROZEN_MPY_DIRS)
$(BUILD)/manifest.py: $(BUILD)/frozen_mpy | $(TOP)/py/circuitpy_mpconfig.mk mpconfigport.mk boards/$(BOARD)/mpconfigboard.mk
$(ECHO) MKMANIFEST $(FROZEN_MPY_DIRS)
(cd $(BUILD)/frozen_mpy && find * -name \*.py -exec printf 'freeze_as_mpy("frozen_mpy", "%s")\n' {} \; )> $@.tmp && mv -f $@.tmp $@
$(Q)(cd $(BUILD)/frozen_mpy && find * -name \*.py -exec printf 'freeze_as_mpy("frozen_mpy", "%s")\n' {} \; )> $@.tmp && mv -f $@.tmp $@
FROZEN_MANIFEST=$(BUILD)/manifest.py
endif

View File

@ -8,7 +8,6 @@ endif
OBJ_EXTRA_ORDER_DEPS =
# Generate moduledefs.h.
SRC_QSTR += $(HEADER_BUILD)/devices.h
OBJ_EXTRA_ORDER_DEPS += $(HEADER_BUILD)/moduledefs.h
ifeq ($(MICROPY_ROM_TEXT_COMPRESSION),1)

View File

@ -82,7 +82,7 @@ STATIC mp_obj_t gen_wrap_call(mp_obj_t self_in, size_t n_args, size_t n_kw, cons
const mp_obj_type_t mp_type_gen_wrap = {
{ &mp_type_type },
.flags = MP_TYPE_FLAG_BINDS_SELF,
.flags = MP_TYPE_FLAG_BINDS_SELF | MP_TYPE_FLAG_EXTENDED,
.name = MP_QSTR_generator,
#if MICROPY_PY_FUNCTION_ATTRS
.attr = mp_obj_fun_bc_attr,
@ -148,7 +148,7 @@ STATIC mp_obj_t native_gen_wrap_call(mp_obj_t self_in, size_t n_args, size_t n_k
const mp_obj_type_t mp_type_native_gen_wrap = {
{ &mp_type_type },
.flags = MP_TYPE_FLAG_BINDS_SELF,
.flags = MP_TYPE_FLAG_BINDS_SELF | MP_TYPE_FLAG_EXTENDED,
.name = MP_QSTR_generator,
#if MICROPY_PY_FUNCTION_ATTRS
.attr = gen_attr,

View File

@ -29,4 +29,4 @@ const mp_obj_module_t gnss_module = {
.globals = (mp_obj_dict_t *)&gnss_module_globals,
};
MP_REGISTER_MODULE(MP_QSTR_gnss, gnss_modulex);
MP_REGISTER_MODULE(MP_QSTR_gnss, gnss_module);