mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-19 03:55:44 -04:00
add DevkitArm support
Signed-off-by: W3SLAV/gt4ous <49104904+W3SLAV@users.noreply.github.com>
This commit is contained in:
parent
7217e07e15
commit
3edff11df9
83
py/deadnv.mk
Normal file
83
py/deadnv.mk
Normal file
@ -0,0 +1,83 @@
|
||||
ifneq ($(lastword a b),b)
|
||||
$(error These Makefiles require make 3.81 or newer)
|
||||
endif
|
||||
|
||||
# Set TOP to be the path to get from the current directory (where make was
|
||||
# invoked) to the top of the tree. $(lastword $(MAKEFILE_LIST)) returns
|
||||
# the name of this makefile relative to where make was invoked.
|
||||
#
|
||||
# We assume that this file is in the py directory so we use $(dir ) twice
|
||||
# to get to the top of the tree.
|
||||
|
||||
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
||||
TOP := $(patsubst %/py/deadnv.mk,%,$(THIS_MAKEFILE))
|
||||
|
||||
# Turn on increased build verbosity by defining BUILD_VERBOSE in your main
|
||||
# Makefile or in your environment. You can also use V=1 on the make command
|
||||
# line.
|
||||
|
||||
ifeq ("$(origin V)", "command line")
|
||||
BUILD_VERBOSE=$(V)
|
||||
endif
|
||||
ifndef BUILD_VERBOSE
|
||||
$(info Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.)
|
||||
BUILD_VERBOSE = 0
|
||||
endif
|
||||
ifeq ($(BUILD_VERBOSE),0)
|
||||
Q = @
|
||||
else
|
||||
Q =
|
||||
endif
|
||||
|
||||
include $(DEVKITARM)/ds_rules
|
||||
|
||||
# default settings; can be overridden in main Makefile
|
||||
|
||||
PY_SRC ?= $(TOP)/py
|
||||
BUILD ?= build
|
||||
|
||||
RM = rm
|
||||
ECHO = @echo
|
||||
CP = cp
|
||||
MKDIR = mkdir
|
||||
SED = sed
|
||||
CAT = cat
|
||||
TOUCH = touch
|
||||
PYTHON = python3
|
||||
ZIP = zip
|
||||
|
||||
# Define the devkitARM toolchain paths
|
||||
DEVKITARM ?= DEVKITARM
|
||||
CROSS_COMPILE = $(DEVKITARM)/bin/arm-none-eabi-
|
||||
|
||||
AS = $(CROSS_COMPILE)as
|
||||
CC = $(CROSS_COMPILE)gcc
|
||||
CPP = $(CC) -E
|
||||
CXX = $(CROSS_COMPILE)g++
|
||||
GDB = $(CROSS_COMPILE)gdb
|
||||
LD = $(CROSS_COMPILE)ld
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
SIZE = $(CROSS_COMPILE)size
|
||||
STRIP = $(CROSS_COMPILE)strip
|
||||
AR = $(CROSS_COMPILE)ar
|
||||
WINDRES = $(CROSS_COMPILE)windres
|
||||
|
||||
MAKE_MANIFEST = $(PYTHON) $(TOP)/tools/makemanifest.py
|
||||
MAKE_FROZEN = $(PYTHON) $(TOP)/tools/make-frozen.py
|
||||
MPY_TOOL = $(PYTHON) $(TOP)/tools/mpy-tool.py
|
||||
|
||||
MPY_LIB_SUBMODULE_DIR = $(TOP)/lib/micropython-lib
|
||||
MPY_LIB_DIR = $(MPY_LIB_SUBMODULE_DIR)
|
||||
|
||||
ifeq ($(MICROPY_MPYCROSS),)
|
||||
MICROPY_MPYCROSS = $(TOP)/mpy-cross/build/mpy-cross
|
||||
MICROPY_MPYCROSS_DEPENDENCY = $(MICROPY_MPYCROSS)
|
||||
endif
|
||||
|
||||
all:
|
||||
.PHONY: all
|
||||
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
MKENV_INCLUDED = 1
|
||||
|
Loading…
Reference in New Issue
Block a user