Browse Source

Merge tags 'cris-for-4.16' and 'cris-for-4.16-urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris

Pull CRIS updates and fixes from Jesper Nilsson:

 - a small fix for some conflicting symbols, aligning CRIS with other
   platforms.

 - fix build breakage regression for all CRIS SoCs. The main Makefile
   for the CRIS port was overzealously scrubbed in 4.15-rc3.

* tag 'cris-for-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris:
  cris: Fix conflicting types for _etext, _edata, _end

* tag 'cris-for-4.16-urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris:
  CRIS: Restore mistakenly cleared kernel Makefile
Linus Torvalds 7 years ago
parent
commit
977e41524d
2 changed files with 18 additions and 1 deletions
  1. 17 0
      arch/cris/kernel/Makefile
  2. 1 1
      arch/cris/kernel/setup.c

+ 17 - 0
arch/cris/kernel/Makefile

@@ -0,0 +1,17 @@
+# SPDX-License-Identifier: GPL-2.0
+#
+# Makefile for the CRIS port.
+#
+
+CPPFLAGS_vmlinux.lds := -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)
+extra-y := vmlinux.lds
+
+obj-y := process.o traps.o irq.o ptrace.o setup.o time.o sys_cris.o
+obj-y += stacktrace.o
+
+obj-$(CONFIG_MODULES)		+= crisksyms.o
+obj-$(CONFIG_MODULES)		+= module.o
+obj-$(CONFIG_SYSTEM_PROFILER)	+= profile.o
+
+clean:
+

+ 1 - 1
arch/cris/kernel/setup.c

@@ -24,6 +24,7 @@
 #include <linux/of_fdt.h>
 #include <linux/of_fdt.h>
 #include <asm/setup.h>
 #include <asm/setup.h>
 #include <arch/system.h>
 #include <arch/system.h>
+#include <asm/sections.h>
 
 
 /*
 /*
  * Setup options
  * Setup options
@@ -31,7 +32,6 @@
 struct screen_info screen_info;
 struct screen_info screen_info;
 
 
 extern int root_mountflags;
 extern int root_mountflags;
-extern char _etext, _edata, _end;
 
 
 char __initdata cris_command_line[COMMAND_LINE_SIZE] = { 0, };
 char __initdata cris_command_line[COMMAND_LINE_SIZE] = { 0, };