From 9e78aff7708a72e615dbc6fb139f6e1dd4767441 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 5 Nov 2014 15:24:33 +0200 Subject: [PATCH] python: add PKG_USE_MIPS16:=0 + handle CONFIG_USE_MIPS16 Signed-off-by: Alexandru Ardelean --- lang/python/files/python-package.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 3f714d27f..07f27197c 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -30,6 +30,13 @@ define HostPython ) endef +PKG_USE_MIPS16:=0 +# This is required in addition to PKG_USE_MIPS16:=0 because otherwise MIPS16 +# flags are inherited from the Python base package (via sysconfig module) +ifdef CONFIG_USE_MIPS16 + TARGET_CFLAGS += -mno-mips16 -mno-interlink-mips16 +endif + define PyPackage $(call shexport,PyPackage/$(1)/filespec)