Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
a9b5248e
Commit
a9b5248e
authored
Jun 07, 2014
by
Damien George
Browse files
Merge pull request #672 from marcusva/makefile
toolchain fixes to enable cross compatibility
parents
dc931934
8ffc0249
Changes
3
Hide whitespace changes
Inline
Side-by-side
py/mkenv.mk
View file @
a9b5248e
...
...
@@ -42,14 +42,14 @@ ECHO = @echo
CP
=
cp
MKDIR
=
mkdir
SED
=
sed
PYTHON
=
python
AS
=
$(CROSS_COMPILE)
as
CC
=
$(CROSS_COMPILE)
gcc
LD
=
$(CROSS_COMPILE)
ld
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
SIZE
=
$(CROSS_COMPILE)
size
STRIP
=
$(CROSS_COMPILE)
strip
PYTHON
?
=
python
AS
?
=
$(CROSS_COMPILE)
as
CC
?
=
$(CROSS_COMPILE)
gcc
LD
?
=
$(CROSS_COMPILE)
ld
OBJCOPY
?
=
$(CROSS_COMPILE)
objcopy
SIZE
?
=
$(CROSS_COMPILE)
size
STRIP
?
=
$(CROSS_COMPILE)
strip
all
:
.PHONY
:
all
...
...
py/py-version.sh
View file @
a9b5248e
#!/bin/
ba
sh
#!/bin/sh
# Note: git describe doesn't work if no tag is available
git_tag
=
"
$(
git describe
--dirty
--always
)
"
...
...
unix/Makefile
View file @
a9b5248e
...
...
@@ -48,7 +48,10 @@ ifeq ($(MICROPY_PY_FFI),1)
LIBFFI_LDFLAGS_MOD
:=
$(
shell
pkg-config
--libs
libffi
)
LIBFFI_CFLAGS_MOD
:=
$(
shell
pkg-config
--cflags
libffi
)
CFLAGS_MOD
+=
$(LIBFFI_CFLAGS_MOD)
-DMICROPY_PY_FFI
=
1
LDFLAGS_MOD
+=
-ldl
$(LIBFFI_LDFLAGS_MOD)
ifeq
($(UNAME_S),Linux)
LDFLAGS_MOD
+=
-ldl
endif
LDFLAGS_MOD
+=
$(LIBFFI_LDFLAGS_MOD)
SRC_MOD
+=
modffi.c
endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment