|
@@ -252,6 +252,12 @@ endif
|
|
FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
|
|
FULL_TARGET=$(CPU_TARGET)-$(OS_TARGET)
|
|
FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
|
|
FULL_SOURCE=$(CPU_SOURCE)-$(OS_SOURCE)
|
|
|
|
|
|
|
|
+ifeq ($(ABI),)
|
|
|
|
+ABI:=default
|
|
|
|
+else
|
|
|
|
+override FPCOPT+=-Ca$(ABI)
|
|
|
|
+endif
|
|
|
|
+
|
|
ifeq ($(CPU_TARGET),armeb)
|
|
ifeq ($(CPU_TARGET),armeb)
|
|
ARCH=arm
|
|
ARCH=arm
|
|
override FPCOPT+=-Cb
|
|
override FPCOPT+=-Cb
|
|
@@ -259,6 +265,7 @@ else
|
|
ifeq ($(CPU_TARGET),armel)
|
|
ifeq ($(CPU_TARGET),armel)
|
|
ARCH=arm
|
|
ARCH=arm
|
|
override FPCOPT+=-CaEABI
|
|
override FPCOPT+=-CaEABI
|
|
|
|
+override ABI:=eabi
|
|
else
|
|
else
|
|
ARCH=$(CPU_TARGET)
|
|
ARCH=$(CPU_TARGET)
|
|
endif
|
|
endif
|
|
@@ -475,6 +482,10 @@ UNITSDIR:=$(wildcard $(FPCDIR)/units/$(TARGETSUFFIX))
|
|
ifeq ($(UNITSDIR),)
|
|
ifeq ($(UNITSDIR),)
|
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
|
UNITSDIR:=$(wildcard $(FPCDIR)/units/$(OS_TARGET))
|
|
endif
|
|
endif
|
|
|
|
+# encode subarch?
|
|
|
|
+ifneq ($(SUBARCH),)
|
|
|
|
+UNITSDIR:=$(UNITSDIR)/$(SUBARCH)-$(ABI)
|
|
|
|
+endif
|
|
|
|
|
|
# Packages dir
|
|
# Packages dir
|
|
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
|
|
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
|
|
@@ -621,6 +632,9 @@ COMPILER_UNITTARGETDIR=$(PACKAGEDIR_MAIN)/units/$(TARGETSUFFIX)
|
|
else
|
|
else
|
|
COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
|
|
COMPILER_UNITTARGETDIR=units/$(TARGETSUFFIX)
|
|
endif
|
|
endif
|
|
|
|
+ifneq ($(SUBARCH),)
|
|
|
|
+COMPILER_UNITTARGETDIR:=$(COMPILER_UNITTARGETDIR)/$(SUBARCH)-$(ABI)
|
|
|
|
+endif
|
|
endif
|
|
endif
|
|
ifndef COMPILER_TARGETDIR
|
|
ifndef COMPILER_TARGETDIR
|
|
COMPILER_TARGETDIR=.
|
|
COMPILER_TARGETDIR=.
|
|
@@ -673,6 +687,10 @@ ifdef PACKAGE_NAME
|
|
INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
|
|
INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(PACKAGE_NAME)
|
|
endif
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
+# encode subarch?
|
|
|
|
+ifneq ($(SUBARCH),)
|
|
|
|
+INSTALL_UNITDIR:=$(INSTALL_UNITDIR)/$(SUBARCH)-$(ABI)
|
|
|
|
+endif
|
|
endif
|
|
endif
|
|
|
|
|
|
# Where to install shared libraries
|
|
# Where to install shared libraries
|