summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-06-07 11:11:28 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-07 11:11:28 -0500
commit4460dd0ba7005289d3224442faf870e59e1e2f86 (patch)
tree8103075c03f5220cb972d6d6148d519214e6e643 /mk
parent06395eb31cad00e8007b9b5314e32cc49cca17bb (diff)
add support for h8/300 architecture
Diffstat (limited to 'mk')
-rw-r--r--mk/linux.mk4
-rw-r--r--mk/vars.mk11
2 files changed, 12 insertions, 3 deletions
diff --git a/mk/linux.mk b/mk/linux.mk
index 09db95f65..a311637ac 100644
--- a/mk/linux.mk
+++ b/mk/linux.mk
@@ -5,9 +5,13 @@ PKG_NAME:= linux
PKG_VERSION:= $(KERNEL_VERSION)
PKG_RELEASE:= $(KERNEL_RELEASE)
PKG_HASH:= $(KERNEL_HASH)
+ifeq ($(ADK_KERNEL_VERSION_GIT),y)
+PKG_SITES:= $(ADK_KERNEL_REPO)
+else
PKG_SITES:= ${MASTER_SITE_KERNEL:=kernel/v4.x/} \
${MASTER_SITE_KERNEL:=kernel/v3.x/} \
${MASTER_SITE_KERNEL:=kernel/v3.0/testing/} \
${MASTER_SITE_KERNEL:=kernel/v4.x/testing/} \
${MASTER_SITE_KERNEL:=kernel/v2.6/longterm/v2.6.32/}
DISTFILES= $(PKG_NAME)-$(PKG_VERSION).tar.xz
+endif
diff --git a/mk/vars.mk b/mk/vars.mk
index 92ed74075..7c38b90d9 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -109,13 +109,18 @@ TARGET_CXX+= $(ADK_TARGET_ABI_CFLAGS)
endif
TARGET_CPPFLAGS:=
-TARGET_CFLAGS:= -fwrapv -fno-ident -fhonour-copts
-TARGET_CXXFLAGS:= -fwrapv -fno-ident -fhonour-copts
+TARGET_CFLAGS:= -fwrapv -fno-ident
+TARGET_CXXFLAGS:= -fwrapv -fno-ident
TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \
-Wl,-O1 -Wl,-rpath -Wl,/usr/lib \
-Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib
-# for archiectures where gcc --with-cpu matches -mcpu=
+ifeq ($(ADK_DISABLE_HONOUR_CFLAGS),)
+TARGET_CFLAGS+= -fhonour-copts
+TARGET_CXXFLAGS+= -fhonour-copts
+endif
+
+# for architectures where gcc --with-cpu matches -mcpu=
ifneq ($(ADK_TARGET_GCC_CPU),)
ifeq ($(ADK_CPU_ARC700),y)
TARGET_CFLAGS+= -mcpu=ARC700