Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
64a909ef
"qemu-arm/modmachine.c" did not exist on "13c19c57a02c7f157ed062821b7446edf691be06"
Commit
64a909ef
authored
Dec 15, 2015
by
pohmelie
Committed by
Damien George
Dec 16, 2015
Browse files
Options
Downloads
Patches
Plain Diff
unix: Add FreeDos target
parent
a1528364
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
unix/Makefile
+12
-0
12 additions, 0 deletions
unix/Makefile
unix/mpconfigport_freedos.h
+38
-0
38 additions, 0 deletions
unix/mpconfigport_freedos.h
with
50 additions
and
0 deletions
unix/Makefile
+
12
−
0
View file @
64a909ef
...
@@ -126,6 +126,8 @@ ifeq ($(PROG),micropython)
...
@@ -126,6 +126,8 @@ ifeq ($(PROG),micropython)
SRC_C
+=
$(
BUILD
)
/_frozen_upip.c
SRC_C
+=
$(
BUILD
)
/_frozen_upip.c
else
ifeq
($(PROG),micropython_coverage)
else
ifeq
($(PROG),micropython_coverage)
SRC_C
+=
$(
BUILD
)
/_frozen_upip.c
SRC_C
+=
$(
BUILD
)
/_frozen_upip.c
else
ifeq
($(PROG), micropython_freedos)
SRC_C
+=
$(
BUILD
)
/_frozen_upip.c
endif
endif
LIB_SRC_C
=
$(
addprefix lib/,
\
LIB_SRC_C
=
$(
addprefix lib/,
\
...
@@ -169,6 +171,16 @@ fast:
...
@@ -169,6 +171,16 @@ fast:
minimal
:
minimal
:
$(
MAKE
)
COPT
=
"-Os -DNDEBUG"
CFLAGS_EXTRA
=
'-DMP_CONFIGFILE="<mpconfigport_minimal.h>"'
BUILD
=
build-minimal
PROG
=
micropython_minimal
MICROPY_PY_TIME
=
0
MICROPY_PY_TERMIOS
=
0
MICROPY_PY_SOCKET
=
0
MICROPY_PY_FFI
=
0
MICROPY_USE_READLINE
=
0
$(
MAKE
)
COPT
=
"-Os -DNDEBUG"
CFLAGS_EXTRA
=
'-DMP_CONFIGFILE="<mpconfigport_minimal.h>"'
BUILD
=
build-minimal
PROG
=
micropython_minimal
MICROPY_PY_TIME
=
0
MICROPY_PY_TERMIOS
=
0
MICROPY_PY_SOCKET
=
0
MICROPY_PY_FFI
=
0
MICROPY_USE_READLINE
=
0
freedos
:
$(
MAKE
)
\
CC
=
i586-pc-msdosdjgpp-gcc
\
CFLAGS_EXTRA
=
'-DMP_CONFIGFILE="<mpconfigport_freedos.h>" -DMICROPY_NLR_SETJMP -Dtgamma=gamma -DMICROPY_EMIT_X86=0 -DMICROPY_NO_ALLOCA=1 -DMICROPY_PY_USELECT=0'
\
BUILD
=
build-freedos
\
PROG
=
micropython_freedos
\
MICROPY_PY_SOCKET
=
0
\
MICROPY_PY_FFI
=
0
\
MICROPY_PY_JNI
=
0
# build an interpreter for coverage testing and do the testing
# build an interpreter for coverage testing and do the testing
coverage
:
coverage
:
$(
MAKE
)
COPT
=
"-O0"
CFLAGS_EXTRA
=
'-fprofile-arcs -ftest-coverage -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wuninitialized -Wunused-parameter -DMICROPY_UNIX_COVERAGE'
LDFLAGS_EXTRA
=
'-fprofile-arcs -ftest-coverage'
BUILD
=
build-coverage
PROG
=
micropython_coverage
$(
MAKE
)
COPT
=
"-O0"
CFLAGS_EXTRA
=
'-fprofile-arcs -ftest-coverage -Wdouble-promotion -Wformat -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wshadow -Wsign-compare -Wuninitialized -Wunused-parameter -DMICROPY_UNIX_COVERAGE'
LDFLAGS_EXTRA
=
'-fprofile-arcs -ftest-coverage'
BUILD
=
build-coverage
PROG
=
micropython_coverage
...
...
This diff is collapsed.
Click to expand it.
unix/mpconfigport_freedos.h
0 → 100644
+
38
−
0
View file @
64a909ef
/*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2015 Damien P. George
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
// options to control how MicroPython is built
#include
<mpconfigport.h>
#undef MICROPY_STREAMS_NON_BLOCK
#define MICROPY_STREAMS_NON_BLOCK (0)
#undef MICROPY_PY_SYS_PLATFORM
#define MICROPY_PY_SYS_PLATFORM "freedos"
// djgpp dirent struct does not have d_ino field
#define _DIRENT_HAVE_D_INO (0)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment