daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ~/Micropython/micropython-git/ports/unix $ ls ../../../modules/example-git/
  2. example.c  micropython.mk
  3.  
  4. ~/Micropython/micropython-git/ports/unix $ touch ../../../modules/example-git/micropython.mk
  5.  
  6. ~/Micropython/micropython-git/ports/unix $ env BUILD_VERBOSE=T make V=1 USER_C_MODULES=../../../modules all
  7. Including User C Module from ../../../modules/example-git
  8. python3 ../../py/makeversionhdr.py build/genhdr/mpversion.h
  9. mkdir -p build/example-git/
  10. CC ../../../modules/example-git/example.c
  11. gcc -I../../lib/berkeley-db-1.xx/PORT/include -I. -I../.. -Ibuild
  12.     -I../../lib/mp-readline -Wall -Werror -Wpointer-arith
  13.     -Wuninitialized -std=gnu99 -DUNIX -DFFCONF_H=\"lib/oofatfs/ffconf.h\"
  14.     -DMICROPY_PY_USSL=1 -DMICROPY_SSL_AXTLS=1 -I../../lib/axtls/ssl
  15.     -I../../lib/axtls/crypto -I../../extmod/axtls-include
  16.     -DMICROPY_PY_BTREE=1  -I../../../modules/example-git
  17.     -DMICROPY_USE_READLINE=1 -DMICROPY_PY_TERMIOS=1 -DMICROPY_PY_SOCKET=1
  18.     -DMICROPY_PY_THREAD=1 -DMICROPY_PY_THREAD_GIL=0  -DMICROPY_PY_FFI=1 -Os
  19.     -fdata-sections -ffunction-sections -DNDEBUG  -U _FORTIFY_SOURCE
  20.     -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
  21.     -DMICROPY_MODULE_FROZEN_MPY -DMPZ_DIG_SIZE=16  -c -MD -o
  22.     build/example-git/example.o ../../../modules/example-git/example.c
  23. LINK micropython
  24. gcc -o micropython build/py/mpstate.o build/py/nlr.o build/py/nlrx86.o
  25.     build/py/nlrx64.o build/py/nlrthumb.o build/py/nlrxtensa.o
  26.     build/py/nlrsetjmp.o build/py/malloc.o build/py/gc.o build/py/pystack.o
  27.     build/py/qstr.o build/py/vstr.o build/py/mpprint.o build/py/unicode.o
  28.     build/py/mpz.o build/py/reader.o build/py/lexer.o build/py/parse.o
  29.     build/py/scope.o build/py/compile.o build/py/emitcommon.o
  30.     build/py/emitbc.o build/py/asmbase.o build/py/asmx64.o build/py/emitnx64.o
  31.     build/py/asmx86.o build/py/emitnx86.o build/py/asmthumb.o
  32.     build/py/emitnthumb.o build/py/emitinlinethumb.o build/py/asmarm.o
  33.     build/py/emitnarm.o build/py/asmxtensa.o build/py/emitnxtensa.o
  34.     build/py/emitinlinextensa.o build/py/formatfloat.o build/py/parsenumbase.o
  35.     build/py/parsenum.o build/py/emitglue.o build/py/persistentcode.o
  36.     build/py/runtime.o build/py/runtime_utils.o build/py/scheduler.o
  37.     build/py/nativeglue.o build/py/stackctrl.o build/py/argcheck.o
  38.     build/py/warning.o build/py/map.o build/py/obj.o build/py/objarray.o
  39.     build/py/objattrtuple.o build/py/objbool.o build/py/objboundmeth.o
  40.     build/py/objcell.o build/py/objclosure.o build/py/objcomplex.o
  41.     build/py/objdeque.o build/py/objdict.o build/py/objenumerate.o
  42.     build/py/objexcept.o build/py/objfilter.o build/py/objfloat.o
  43.     build/py/objfun.o build/py/objgenerator.o build/py/objgetitemiter.o
  44.     build/py/objint.o build/py/objint_longlong.o build/py/objint_mpz.o
  45.     build/py/objlist.o build/py/objmap.o build/py/objmodule.o
  46.     build/py/objobject.o build/py/objpolyiter.o build/py/objproperty.o
  47.     build/py/objnone.o build/py/objnamedtuple.o build/py/objrange.o
  48.     build/py/objreversed.o build/py/objset.o build/py/objsingleton.o
  49.     build/py/objslice.o build/py/objstr.o build/py/objstrunicode.o
  50.     build/py/objstringio.o build/py/objtuple.o build/py/objtype.o
  51.     build/py/objzip.o build/py/opmethods.o build/py/sequence.o
  52.     build/py/stream.o build/py/binary.o build/py/builtinimport.o
  53.     build/py/builtinevex.o build/py/builtinhelp.o build/py/modarray.o
  54.     build/py/modbuiltins.o build/py/modcollections.o build/py/modgc.o
  55.     build/py/modio.o build/py/modmath.o build/py/modcmath.o
  56.     build/py/modmicropython.o build/py/modstruct.o build/py/modsys.o
  57.     build/py/moduerrno.o build/py/modthread.o build/py/vm.o build/py/bc.o
  58.     build/py/showbc.o build/py/repl.o build/py/smallint.o build/py/frozenmod.o
  59.     build/extmod/moductypes.o build/extmod/modujson.o build/extmod/modure.o
  60.     build/extmod/moduzlib.o build/extmod/moduheapq.o build/extmod/modutimeq.o
  61.     build/extmod/moduhashlib.o build/extmod/moducryptolib.o
  62.     build/extmod/modubinascii.o build/extmod/virtpin.o
  63.     build/extmod/machine_mem.o build/extmod/machine_pinbase.o
  64.     build/extmod/machine_signal.o build/extmod/machine_pulse.o
  65.     build/extmod/machine_i2c.o build/extmod/machine_spi.o
  66.     build/extmod/modussl_axtls.o build/extmod/modussl_mbedtls.o
  67.     build/extmod/modurandom.o build/extmod/moduselect.o
  68.     build/extmod/moduwebsocket.o build/extmod/modwebrepl.o
  69.     build/extmod/modframebuf.o build/extmod/vfs.o build/extmod/vfs_reader.o
  70.     build/extmod/vfs_posix.o build/extmod/vfs_posix_file.o
  71.     build/extmod/vfs_fat.o build/extmod/vfs_fat_diskio.o
  72.     build/extmod/vfs_fat_file.o build/extmod/utime_mphal.o
  73.     build/extmod/uos_dupterm.o build/lib/embed/abort_.o
  74.     build/lib/utils/printf.o build/build/frozen.o build/build/frozen_mpy.o
  75.     build/main.o build/gccollect.o build/unix_mphal.o build/mpthreadport.o
  76.     build/input.o build/file.o build/modmachine.o build/modos.o
  77.     build/moduos_vfs.o build/modtime.o build/moduselect.o build/alloc.o
  78.     build/coverage.o build/fatfs_port.o build/lib/axtls/ssl/asn1.o
  79.     build/lib/axtls/ssl/loader.o build/lib/axtls/ssl/tls1.o
  80.     build/lib/axtls/ssl/tls1_svr.o build/lib/axtls/ssl/tls1_clnt.o
  81.     build/lib/axtls/ssl/x509.o build/lib/axtls/crypto/aes.o
  82.     build/lib/axtls/crypto/bigint.o build/lib/axtls/crypto/crypto_misc.o
  83.     build/lib/axtls/crypto/hmac.o build/lib/axtls/crypto/md5.o
  84.     build/lib/axtls/crypto/rsa.o build/lib/axtls/crypto/sha1.o
  85.     build/extmod/modbtree.o build/lib/berkeley-db-1.xx/btree/bt_close.o
  86.     build/lib/berkeley-db-1.xx/btree/bt_conv.o
  87.     build/lib/berkeley-db-1.xx/btree/bt_debug.o
  88.     build/lib/berkeley-db-1.xx/btree/bt_delete.o
  89.     build/lib/berkeley-db-1.xx/btree/bt_get.o
  90.     build/lib/berkeley-db-1.xx/btree/bt_open.o
  91.     build/lib/berkeley-db-1.xx/btree/bt_overflow.o
  92.     build/lib/berkeley-db-1.xx/btree/bt_page.o
  93.     build/lib/berkeley-db-1.xx/btree/bt_put.o
  94.     build/lib/berkeley-db-1.xx/btree/bt_search.o
  95.     build/lib/berkeley-db-1.xx/btree/bt_seq.o
  96.     build/lib/berkeley-db-1.xx/btree/bt_split.o
  97.     build/lib/berkeley-db-1.xx/btree/bt_utils.o
  98.     build/lib/berkeley-db-1.xx/mpool/mpool.o build/example-git/example.o
  99.     build/modtermios.o build/modusocket.o build/modffi.o
  100.     build/lib/mp-readline/readline.o build/lib/timeutils/timeutils.o
  101.     build/lib/oofatfs/ff.o build/lib/oofatfs/ffunicode.o   -lpthread -lffi
  102.     -ldl -Wl,-Map=micropython.map,--cref -Wl,--gc-sections -lm
  103. strip  micropython
  104. size $(find build -path "build/build/frozen*.o") micropython
  105.    text    data     bss     dec     hex filename
  106.       2       0       0       2       2 build/build/frozen.o
  107.    2040    6668       0    8708    2204 build/build/frozen_mpy.o
  108.  439277   54896    2104  496277   79295 micropython
  109.  
  110. ~/Micropython/micropython-git/ports/unix $ ./micropython
  111. ./micropython       ./micropython.map  
  112.  
  113. ~/Micropython/micropython-git/ports/unix $ ./micropython
  114. MicroPython v1.9.4-1021-g696549d2e-dirty on 2019-03-17; linux version
  115. Use Ctrl-D to exit, Ctrl-E for paste mode
  116. >>> import example
  117. Traceback (most recent call last):
  118.   File "<stdin>", line 1, in <module>
  119. ImportError: no module named 'example'
  120. >>>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top