A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/micropython/micropython/commit/64a909ef5113925adef19f275f62473de8ee68c5 below:

Add FreeDos target · micropython/micropython@64a909e · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+50

-0

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+50

-0

lines changed Original file line number Diff line number Diff line change

@@ -126,6 +126,8 @@ ifeq ($(PROG),micropython)

126 126

SRC_C += $(BUILD)/_frozen_upip.c

127 127

else ifeq ($(PROG),micropython_coverage)

128 128

SRC_C += $(BUILD)/_frozen_upip.c

129 +

else ifeq ($(PROG), micropython_freedos)

130 +

SRC_C += $(BUILD)/_frozen_upip.c

129 131

endif

130 132 131 133

LIB_SRC_C = $(addprefix lib/,\

@@ -169,6 +171,16 @@ fast:

169 171

minimal:

170 172

$(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

171 173 174 +

freedos:

175 +

$(MAKE) \

176 +

CC=i586-pc-msdosdjgpp-gcc \

177 +

CFLAGS_EXTRA='-DMP_CONFIGFILE="<mpconfigport_freedos.h>" -DMICROPY_NLR_SETJMP -Dtgamma=gamma -DMICROPY_EMIT_X86=0 -DMICROPY_NO_ALLOCA=1 -DMICROPY_PY_USELECT=0' \

178 +

BUILD=build-freedos \

179 +

PROG=micropython_freedos \

180 +

MICROPY_PY_SOCKET=0 \

181 +

MICROPY_PY_FFI=0 \

182 +

MICROPY_PY_JNI=0

183 + 172 184

# build an interpreter for coverage testing and do the testing

173 185

coverage:

174 186

$(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

Original file line number Diff line number Diff line change

@@ -0,0 +1,38 @@

1 +

/*

2 +

* This file is part of the MicroPython project, http://micropython.org/

3 +

*

4 +

* The MIT License (MIT)

5 +

*

6 +

* Copyright (c) 2015 Damien P. George

7 +

*

8 +

* Permission is hereby granted, free of charge, to any person obtaining a copy

9 +

* of this software and associated documentation files (the "Software"), to deal

10 +

* in the Software without restriction, including without limitation the rights

11 +

* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

12 +

* copies of the Software, and to permit persons to whom the Software is

13 +

* furnished to do so, subject to the following conditions:

14 +

*

15 +

* The above copyright notice and this permission notice shall be included in

16 +

* all copies or substantial portions of the Software.

17 +

*

18 +

* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

19 +

* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

20 +

* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

21 +

* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

22 +

* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,

23 +

* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN

24 +

* THE SOFTWARE.

25 +

*/

26 + 27 +

// options to control how MicroPython is built

28 + 29 +

#include <mpconfigport.h>

30 + 31 +

#undef MICROPY_STREAMS_NON_BLOCK

32 +

#define MICROPY_STREAMS_NON_BLOCK (0)

33 + 34 +

#undef MICROPY_PY_SYS_PLATFORM

35 +

#define MICROPY_PY_SYS_PLATFORM "freedos"

36 + 37 +

// djgpp dirent struct does not have d_ino field

38 +

#define _DIRENT_HAVE_D_INO (0)

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4