File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,14 +42,14 @@ ECHO = @echo
4242CP = cp
4343MKDIR = mkdir
4444SED = sed
45- PYTHON = python
46-
47- AS = $(CROSS_COMPILE ) as
48- CC = $(CROSS_COMPILE ) gcc
49- LD = $(CROSS_COMPILE ) ld
50- OBJCOPY = $(CROSS_COMPILE ) objcopy
51- SIZE = $(CROSS_COMPILE ) size
52- STRIP = $(CROSS_COMPILE ) strip
45+ PYTHON ? = python
46+
47+ AS ? = $(CROSS_COMPILE ) as
48+ CC ? = $(CROSS_COMPILE ) gcc
49+ LD ? = $(CROSS_COMPILE ) ld
50+ OBJCOPY ? = $(CROSS_COMPILE ) objcopy
51+ SIZE ? = $(CROSS_COMPILE ) size
52+ STRIP ? = $(CROSS_COMPILE ) strip
5353
5454all :
5555.PHONY : all
Original file line number Diff line number Diff line change 1- #! /bin/bash
1+ #! /bin/sh
22
33# Note: git describe doesn't work if no tag is available
44git_tag=" $( git describe --dirty --always) "
Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ ifeq ($(MICROPY_PY_FFI),1)
4848LIBFFI_LDFLAGS_MOD := $(shell pkg-config --libs libffi)
4949LIBFFI_CFLAGS_MOD := $(shell pkg-config --cflags libffi)
5050CFLAGS_MOD += $(LIBFFI_CFLAGS_MOD ) -DMICROPY_PY_FFI=1
51- LDFLAGS_MOD += -ldl $(LIBFFI_LDFLAGS_MOD )
51+ ifeq ($(UNAME_S ) ,Linux)
52+ LDFLAGS_MOD += -ldl
53+ endif
54+ LDFLAGS_MOD += $(LIBFFI_LDFLAGS_MOD )
5255SRC_MOD += modffi.c
5356endif
5457
You can’t perform that action at this time.
0 commit comments