unicore32 core architecture: build infrastructure
PATCH 1/12 unicore32 core architecture: build infrastructure
From: Guan Xuetao <[email protected]>
This patch implements build infrastructure.
--- arch/unicore32/.gitignore | 70 +++++++++ arch/unicore32/Kconfig | 258 +++++++++++++++++++++++++++++++ arch/unicore32/Kconfig.debug | 86 ++++++++++ arch/unicore32/Makefile | 153 ++++++++++++++++++ arch/unicore32/configs/debug_defconfig | 211 +++++++++++++++++++++++++ arch/unicore32/configs/nb0916_defconfig | 203 ++++++++++++++++++++++++ arch/unicore32/include/asm/Kbuild | 4 + arch/unicore32/include/asm/linkage.h | 22 +++ arch/unicore32/kernel/Makefile | 34 ++++ arch/unicore32/kernel/asm-offsets.c | 112 +++++++++++++ arch/unicore32/kernel/ksyms.c | 87 +++++++++++ arch/unicore32/kernel/module.c | 152 ++++++++++++++++++ arch/unicore32/kernel/vmlinux.lds.S | 120 ++++++++++++++ firmware/Makefile | 2 +- 14 files changed, 1513 insertions(+), 1 deletions(-)
arch/unicore32/.gitignore new file +70 -0
@@ -0,0 +1,70 @@ +# +# Generated include files +# +include/asm/atomic.h +include/asm/auxvec.h +include/asm/bitsperlong.h +include/asm/bug.h +include/asm/bugs.h +include/asm/cputime.h +include/asm/current.h +include/asm/device.h +include/asm/emergency-restart.h +include/asm/errno.h +include/asm/fb.h +include/asm/fcntl.h +include/asm/hardirq.h +include/asm/hw_irq.h +include/asm/ioctl.h +include/asm/ioctls.h +include/asm/ipcbuf.h +include/asm/irq_regs.h +include/asm/kdebug.h +include/asm/kmap_types.h +include/asm/local.h +include/asm/mman.h +include/asm/module.h +include/asm/msgbuf.h +include/asm/param.h +include/asm/parport.h +include/asm/percpu.h +include/asm/poll.h +include/asm/posix_types.h +include/asm/resource.h +include/asm/scatterlist.h +include/asm/sections.h +include/asm/sembuf.h +include/asm/serial.h +include/asm/shmbuf.h +include/asm/shmparam.h +include/asm/siginfo.h +include/asm/signal.h +include/asm/socket.h +include/asm/sockios.h +include/asm/statfs.h +include/asm/termbits.h +include/asm/termios.h +include/asm/topology.h +include/asm/types.h +include/asm/ucontext.h +include/asm/unaligned.h +include/asm/user.h +include/asm/vga.h +include/asm/xor.h +# +# Generated ld script file +# +kernel/vmlinux.lds +# +# Generated images in boot +# +boot/Image +boot/zImage +boot/uImage +# +# Generated files in boot/compressed +# +boot/compressed/piggy.S +boot/compressed/piggy.gzip +boot/compressed/vmlinux +boot/compressed/vmlinux.lds
arch/unicore32/Kconfig new file +258 -0
258 lines not on this page · raw message
arch/unicore32/Kconfig.debug new file +86 -0
86 lines not on this page · raw message
arch/unicore32/Makefile new file +153 -0
153 lines not on this page · raw message
arch/unicore32/configs/debug_defconfig new file +211 -0
211 lines not on this page · raw message
arch/unicore32/configs/nb0916_defconfig new file +203 -0
203 lines not on this page · raw message
arch/unicore32/include/asm/Kbuild new file +4 -0
@@ -0,0 +1,4 @@ +include include/asm-generic/Kbuild.asm + +header-y += hwcap.h +
arch/unicore32/include/asm/linkage.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* linux/arch/unicore32/include/asm/linkage.h +* +* Code specific to PKUnity SoC and UniCore ISA +* +* Copyright (C) 2001-2010 GUAN Xue-tao +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ +#ifndef __UNICORE_LINKAGE_H__ +#define __UNICORE_LINKAGE_H__ + +#define __ALIGN .align 0 +#define __ALIGN_STR ".align 0" + +#define ENDPROC (name) \ + .type name, %function; \ + END(name) + +#endif
arch/unicore32/kernel/Makefile new file +34 -0
@@ -0,0 +1,34 @@ +# +# Makefile for the linux kernel. +# + +CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET) +AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET) + +# Object file lists. + +obj-y := elf.o entry.o process.o ptrace.o setup.o signal.o \ + sys_unicore.o stacktrace.o traps.o + +obj-$(CONFIG_MODULES) += ksyms.o module.o +obj-$(CONFIG_EARLY_PRINTK) += early_printk.o + +obj-$(CONFIG_CPU_FREQ) += cpu-ucv2.o + +# obj-y for architecture PKUnity v3 +obj-$(CONFIG_ARCH_PUV3) += clock.o irq.o time.o + +obj-$(CONFIG_PUV3_PM) += pm.o sleep.o +obj-$(CONFIG_HIBERNATION) += hibernate.o hibernate_asm.o + +obj-$(CONFIG_PCI) += pci.o + +# obj-y for specific machines +obj-$(CONFIG_ARCH_PUV3) += puv3-core.o +obj-$(CONFIG_PUV3_NB0916) += puv3-nb0916.o +obj-$(CONFIG_PUV3_SMW0919) += puv3-smw0919.o + +head-y := head.o +obj-$(CONFIG_DEBUG_LL) += debug.o + +extra-y := $(head-y) init_task.o vmlinux.lds
arch/unicore32/kernel/asm-offsets.c new file +112 -0
112 lines not on this page · raw message
arch/unicore32/kernel/ksyms.c new file +87 -0
87 lines not on this page · raw message
arch/unicore32/kernel/module.c new file +152 -0
152 lines not on this page · raw message
arch/unicore32/kernel/vmlinux.lds.S new file +120 -0
120 lines not on this page · raw message
firmware/Makefile +1 -1
@@ -164,7 +164,7 @@ quiet_cmd_fwbin = MK_FW $@ firmware/%.gen.S,%,$@))))"; \ ASM_WORD=$(if $(CONFIG_64BIT),.quad,.long); \ ASM_ALIGN=$(if $(CONFIG_64BIT),3,2); \ - PROGBITS=$(if $(CONFIG_ARM),%,@)progbits; \ + PROGBITS=$(if $(CONFIG_ARM) and $(CONFIG_UNICORE32),%,@)progbits; \ echo "/* Generated by firmware/Makefile */" > $@;\ echo " .section .rodata" >>$@;\ echo " .p2align $${ASM_ALIGN}" >>$@;\
Quoted 8 lines · Guan Xuetao
arch/unicore32/Kconfig new file +2
-0@@ -0,0 +1,258 @@ +config UNICORE32 + bool
arch/unicore32/Kconfig line 12
Quoted 10 lines
arch/unicore32/Kconfig new file +10
-0+ default y + select HAVE_MEMBLOCK + select HAVE_GENERIC_DMA_COHERENT + select HAVE_DMA_ATTRS + select HAVE_KERNEL_GZIP + select HAVE_KERNEL_BZIP2 + select HAVE_KERNEL_LZO + select HAVE_KERNEL_LZMA + select GENERIC_FIND_FIRST_BIT + select ARCH_WANT_FRAME_POINTERS
You want to select HAVE_GENERIC_HARDIRQS here.
arch/unicore32/Kconfig line 86
Quoted 7 lines
arch/unicore32/Kconfig new file +7
-0+config GENERIC_HARDIRQS + bool + default y + +config GENERIC_HARDIRQS_NO__DO_IRQ + def_bool y +
Then you can get rid of these, and source kernel/irq/Kconfig.
Quoted 4 lines
arch/unicore32/Kconfig new file +4
-0+# arch/unicore32/Makefile +# +# This file is included by the global makefile so that you can add your own +# architecture-specific flags and dependencies.
arch/unicore32/Kconfig line 33
Quoted 10 lines
arch/unicore32/Kconfig new file +10
-0+# +# This file is subject to the terms and conditions of the GNU General Public +# License. See the file "COPYING" in the main directory of this archive +# for more details. +# +# Copyright (C) 2002~2010 by Guan Xue-tao +LOCALVERSION := -uc32 + +CROSS_COMPILE := /usr/unicore/gnu-toolchain-unicore/uc4/bin/unicore32-linux- +
This isn't terribly portable. You can elect to tie in cc-cross-prefix like other architectures, or just drop it entirely and store it in your .config (see the top-level Makefile for generic CROSS_COMPILE handling options).
arch/unicore32/Kconfig line 35
Quoted 2 lines
arch/unicore32/Kconfig new file +2
-0+INSTALL_MOD_PATH := $(obj)/usr +
This and the LOCALVERSION specifications are pretty nasty surprises for users. This is all handled generically for a reason, so please kill off of this off.
Quoted 5 lines
arch/unicore32/Kconfig new file +5
-0+LDFLAGS_vmlinux :=-p --no-undefined -X + +OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment -S +GZFLAGS :=-9 +#KBUILD_CFLAGS +=-pipe
arch/unicore32/Kconfig line 50
Quoted 10 lines
arch/unicore32/Kconfig new file +10
-0+# Explicitly specifiy 32-bit UniCore ISA: +KBUILD_CFLAGS +=$(call cc-option,-municore,) + +# Never generate .eh_frame +KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) + +ifeq ($(CONFIG_FRAME_POINTER),y) +KBUILD_CFLAGS +=-fno-omit-frame-pointer -mno-sched-prolog +endif +
-fno-omit-frame-pointer is handled generically, so there is no need for it here.
arch/unicore32/Kconfig line 54
Quoted 4 lines
arch/unicore32/Kconfig new file +4
-0+KBUILD_CPPFLAGS += -mlittle-endian +AS += -EL +LD += -EL +
No. If you need to set AS and LD flags for endianness, then do so explicitly. See how every other architecture is doing this. You may also wish to read through Documentation/kbuild/makefiles.txt carefully.
arch/unicore32/Kconfig line 56
Quoted 2 lines
arch/unicore32/Kconfig new file +2
-0+comma = , +
This is unused?
arch/unicore32/Kconfig line 62
Quoted 6 lines
arch/unicore32/Kconfig new file +6
-0+# Need -Uunicore32 for gcc < 3.x +# delete -mstructure-size-boundary=32, and default being 8 +# delete -funsigned-char, and default being signed-char +KBUILD_CFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uunicore32 +KBUILD_AFLAGS +=-msoft-float +
Is it realistic to even support gcc 2.x versions on a recent kernel?
arch/unicore32/Kconfig line 68
Quoted 6 lines
arch/unicore32/Kconfig new file +6
-0+drivers-$(CONFIG_ARCH_PUV3) += drivers/staging/puv3/ + +libs-y += arch/unicore32/lib/ +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libc.a) +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) +
The libgcc thing is not too surprising, but you do have -print-libgcc-file-name for this. That libc.a thing however needs some explaining.
Quoted 7 lines
arch/unicore32/kernel/asm-offsets.c new file +2
-0+/* +* GCC 3.0, 3.1: general bad code generation.
arch/unicore32/kernel/asm-offsets.c line 36
Quoted 10 lines
arch/unicore32/kernel/asm-offsets.c new file +10
-0+* GCC 3.2.0: incorrect function argument offset calculation. +* GCC 3.2.x: miscompiles NEW_AUX_ENT in fs/binfmt_elf.c +* (http://gcc.gnu.org/PR8896) and incorrect structure +* initialisation in fs/jffs2/erase.c +*/ +#if (__GNUC__ <4 ) +#error Your compiler should upgrade to uc4 +#error Known good compilers: 4.2.2 +#endif +
If your compiler situation is this screwed up, then you need to be erroring out in the Makefile, and you can most certainly kill off that gcc 2.x cruft.
Quoted 36 lines
+++
b/arch/unicore32/kernel/vmlinux.lds.Sarch/unicore32/kernel/asm-offsets.c new file +34
-0@@ -0,0 +1,120 @@ +/* +* linux/arch/unicore32/kernel/vmlinux.lds.S +* +* Code specific to PKUnity SoC and UniCore ISA +* +* Copyright (C) 2001-2010 GUAN Xue-tao +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <asm-generic/vmlinux.lds.h> +#include <asm/thread_info.h> +#include <asm/memory.h> +#include <asm/page.h> + +OUTPUT_ARCH (unicore32) +ENTRY (stext ) + +jiffies = jiffies_64; + +SECTIONS +{ + . = PAGE_OFFSET + TEXT_OFFSET; + + .init : { /* Init code and data */ + _stext = .; + _sinittext = .; +HEAD_TEXT + INIT_TEXT + _einittext = .; + +INIT_SETUP (16 )
arch/unicore32/kernel/asm-offsets.c line 44
Quoted 10 lines
arch/unicore32/kernel/asm-offsets.c new file +10
-0+ +INIT_CALLS + CON_INITCALL +SECURITY_INITCALL + INIT_RAM_FS + + __init_begin = _stext; + INIT_DATA + } +
This looks really broken, please take a look at asm-generic/vmlinux.lds.h and use that as a model. Any reasons you have for needing to deviate from that should be thoroughly explained.
Quoted 22 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Paul Mundt
Sent: Thursday, January 06, 2011 3:56 PM
To: Guan Xuetao
Cc: [email protected]; [email protected]
Subject: Re: [PATCHv1 01/12] unicore32 core architecture: build infrastructureQuoted 12 lines · Guan Xuetao
arch/unicore32/Kconfig new file +6
-0@@ -0,0 +1,258 @@ +config UNICORE32 + bool + default y + select HAVE_MEMBLOCK + select HAVE_GENERIC_DMA_COHERENT + select HAVE_DMA_ATTRS
Quoted 8 lines
arch/unicore32/Kconfig line 12
Quoted 6 lines
arch/unicore32/Kconfig new file +6
-0+ select HAVE_KERNEL_GZIP + select HAVE_KERNEL_BZIP2 + select HAVE_KERNEL_LZO + select HAVE_KERNEL_LZMA + select GENERIC_FIND_FIRST_BIT + select ARCH_WANT_FRAME_POINTERSYou want to select
HAVE_GENERIC_HARDIRQShere.
Yes, changed.
Quoted 10 lines
arch/unicore32/Kconfig line 19
Quoted 8 lines
arch/unicore32/Kconfig new file +7
-0+config GENERIC_HARDIRQS + bool + default y + +config GENERIC_HARDIRQS_NO__DO_IRQ + def_bool y +Then you can get rid of these, and source
kernel/irq/Kconfig.
Removed, and kernel/irq/Kconfig is included in init/Kconfig, just be ok.
Quoted 64 lines
Quoted 5 lines
arch/unicore32/Kconfig new file +4
-0+# arch/unicore32/Makefile +# +# This file is included by the global makefile so that you can add your own +# architecture-specific flags and dependencies.arch/unicore32/Kconfig line 33
Quoted 10 lines
arch/unicore32/Kconfig new file +10
-0+# +# This file is subject to the terms and conditions of the GNU General Public +# License. See the file "COPYING" in the main directory of this archive +# for more details. +# +# Copyright (C) 2002~2010 by Guan Xue-tao +LOCALVERSION := -uc32 + +CROSS_COMPILE := /usr/unicore/gnu-toolchain-unicore/uc4/bin/unicore32-linux- +This isn't terribly portable. You can elect to tie in cc-cross-prefix like other architectures, or just drop it entirely and store it in your .config (see the top-level
Makefilefor genericCROSS_COMPILEhandling options).arch/unicore32/Kconfig line 35
Quoted 2 lines
arch/unicore32/Kconfig new file +2
-0+INSTALL_MOD_PATH := $(obj)/usr +This and the LOCALVERSION specifications are pretty nasty surprises for users. This is all handled generically for a reason, so please kill off of this off.
Quoted 5 lines
arch/unicore32/Kconfig new file +5
-0+LDFLAGS_vmlinux :=-p --no-undefined -X + +OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment -S +GZFLAGS :=-9 +#KBUILD_CFLAGS +=-pipearch/unicore32/Kconfig line 50
Quoted 10 lines
arch/unicore32/Kconfig new file +10
-0+# Explicitly specifiy 32-bit UniCore ISA: +KBUILD_CFLAGS +=$(call cc-option,-municore,) + +# Never generate .eh_frame +KBUILD_CFLAGS += $(call cc-option,-fno-dwarf2-cfi-asm) + +ifeq ($(CONFIG_FRAME_POINTER),y) +KBUILD_CFLAGS +=-fno-omit-frame-pointer -mno-sched-prolog +endif +-fno-omit-frame-pointer is handled generically, so there is no need for it here.
arch/unicore32/Kconfig line 54
Quoted 4 lines
arch/unicore32/Kconfig new file +4
-0+KBUILD_CPPFLAGS += -mlittle-endian +AS += -EL +LD += -EL +No. If you need to set AS and LD flags for endianness, then do so explicitly. See how every other architecture is doing this. You may also wish to read through
Documentation/kbuild/makefiles.txtcarefully.arch/unicore32/Kconfig line 56
Quoted 2 lines
arch/unicore32/Kconfig new file +2
-0+comma = , +This is unused?
arch/unicore32/Kconfig line 62
Quoted 6 lines
arch/unicore32/Kconfig new file +6
-0+# Need -Uunicore32 for gcc < 3.x +# delete -mstructure-size-boundary=32, and default being 8 +# delete -funsigned-char, and default being signed-char +KBUILD_CFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,)) -msoft-float -Uunicore32 +KBUILD_AFLAGS +=-msoft-float +Is it realistic to even support gcc 2.x versions on a recent kernel?
Quoted 9 lines
arch/unicore32/Kconfig line 68
Quoted 6 lines
arch/unicore32/Kconfig new file +6
-0+drivers-$(CONFIG_ARCH_PUV3) += drivers/staging/puv3/ + +libs-y += arch/unicore32/lib/ +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libc.a) +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) +The libgcc thing is not too surprising, but you do have -print-libgcc-file-name for this. That libc.a thing however needs some explaining.
All above is corrected, please see following arch/unicore32/Makefile:
arch/unicore32/Makefile new file +144 -0
@@ -0,0 +1,144 @@ +# +# arch/unicore32/Makefile +# +# This file is included by the global makefile so that you can add your own +# architecture-specific flags and dependencies. +# +# This file is subject to the terms and conditions of the GNU General Public +# License. See the file "COPYING" in the main directory of this archive +# for more details. +# +# Copyright (C) 2002~2010 by Guan Xue-tao +ifneq ($(SUBARCH),$(ARCH)) + ifeq ($(CROSS_COMPILE),) + CROSS_COMPILE := $(call cc-cross-prefix, unicore32-linux-) + endif +endif + +LDFLAGS_vmlinux :=-p --no-undefined -X + +OBJCOPYFLAGS :=-O binary -R .note -R .note.gnu.build-id -R .comment -S +GZFLAGS :=-9 + +# Explicitly specifiy 32-bit UniCore ISA: +KBUILD_CFLAGS +=$(call cc-option,-municore32) + +# Never generate .eh_frame +KBUILD_CFLAGS +=$(call cc-option,-fno-dwarf2-cfi-asm) + +KBUILD_CFLAGS +=-msoft-float + +ifeq ($(CONFIG_FRAME_POINTER),y) +KBUILD_CFLAGS +=-mno-sched-prolog +endif + +CHECKFLAGS += -D__unicore32__ + +#Default value +head-y := arch/unicore32/kernel/head.o arch/unicore32/kernel/init_task.o +textofs-y := 0x00408000 + +# The byte offset of the kernel image in RAM from the start of RAM. +TEXT_OFFSET := $(textofs-y) + +export TEXT_OFFSET GZFLAGS + +core-y += arch/unicore32/kernel/ arch/unicore32/mm/ +core-$(CONFIG_UNICORE_FPU_F64) += arch/unicore32/uc-f64/ + +drivers-$(CONFIG_ARCH_PUV3) += drivers/staging/puv3/ + +libs-y += arch/unicore32/lib/ +# include libc.a in libs-y for string functions, like memcpy and so on. +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libc.a) +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) + +# Default target when executing plain make +KBUILD_IMAGE := zImage + +all: $(KBUILD_IMAGE) + +boot := arch/unicore32/boot + +ASM_GENERIC_HEADERS := arch/unicore32/include/asm/atomic.h \ + arch/unicore32/include/asm/auxvec.h \ + arch/unicore32/include/asm/bitsperlong.h \ + arch/unicore32/include/asm/bug.h \ + arch/unicore32/include/asm/bugs.h \ + arch/unicore32/include/asm/cputime.h \ + arch/unicore32/include/asm/current.h \ + arch/unicore32/include/asm/device.h \ + arch/unicore32/include/asm/div64.h \ + arch/unicore32/include/asm/emergency-restart.h \ + arch/unicore32/include/asm/errno.h \ + arch/unicore32/include/asm/fb.h \ + arch/unicore32/include/asm/fcntl.h \ + arch/unicore32/include/asm/hardirq.h \ + arch/unicore32/include/asm/hw_irq.h \ + arch/unicore32/include/asm/ioctl.h \ + arch/unicore32/include/asm/ioctls.h \ + arch/unicore32/include/asm/ipcbuf.h \ + arch/unicore32/include/asm/irq_regs.h \ + arch/unicore32/include/asm/kdebug.h \ + arch/unicore32/include/asm/kmap_types.h \ + arch/unicore32/include/asm/local.h \ + arch/unicore32/include/asm/mman.h \ + arch/unicore32/include/asm/module.h \ + arch/unicore32/include/asm/msgbuf.h \ + arch/unicore32/include/asm/param.h \ + arch/unicore32/include/asm/parport.h \ + arch/unicore32/include/asm/percpu.h \ + arch/unicore32/include/asm/poll.h \ + arch/unicore32/include/asm/posix_types.h \ + arch/unicore32/include/asm/resource.h \ + arch/unicore32/include/asm/scatterlist.h \ + arch/unicore32/include/asm/sections.h \ + arch/unicore32/include/asm/sembuf.h \ + arch/unicore32/include/asm/serial.h \ + arch/unicore32/include/asm/shmbuf.h \ + arch/unicore32/include/asm/shmparam.h \ + arch/unicore32/include/asm/siginfo.h \ + arch/unicore32/include/asm/signal.h \ + arch/unicore32/include/asm/socket.h \ + arch/unicore32/include/asm/sockios.h \ + arch/unicore32/include/asm/statfs.h \ + arch/unicore32/include/asm/termbits.h \ + arch/unicore32/include/asm/termios.h \ + arch/unicore32/include/asm/topology.h \ + arch/unicore32/include/asm/types.h \ + arch/unicore32/include/asm/ucontext.h \ + arch/unicore32/include/asm/unaligned.h \ + arch/unicore32/include/asm/user.h \ + arch/unicore32/include/asm/vga.h \ + arch/unicore32/include/asm/xor.h + +%.h: + $(Q)echo '#include <asm-generic/$(notdir $@)>' > $@ + +archprepare: $(ASM_GENERIC_HEADERS) + +# Convert bzImage to zImage +bzImage: zImage + +zImage Image uImage: vmlinux + $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@ + +zinstall install: vmlinux + $(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $@ + +CLEAN_FILES += $(ASM_GENERIC_HEADERS) + +# We use MRPROPER_FILES and CLEAN_FILES now +archclean: + $(Q)$(MAKE) $(clean)=$(boot) + +define archhelp + echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)' + echo ' Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)' + echo ' uImage - U-Boot wrapped zImage' + echo ' install - Install uncompressed kernel' + echo ' zinstall - Install compressed kernel' + echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' + echo ' (distribution) /sbin/$(INSTALLKERNEL) or' + echo ' install to $$(INSTALL_PATH) and run lilo' +endef
Quoted 13 lines
Quoted 13 lines
arch/unicore32/kernel/asm-offsets.c new file +7
-0+/* +* GCC 3.0, 3.1: general bad code generation. +* GCC 3.2.0: incorrect function argument offset calculation. +* GCC 3.2.x: miscompiles NEW_AUX_ENT in fs/binfmt_elf.c +* (http://gcc.gnu.org/PR8896) and incorrect structure +* initialisation in fs/jffs2/erase.c +*/
Quoted 8 lines
arch/unicore32/kernel/asm-offsets.c
Quoted 5 lines
arch/unicore32/kernel/asm-offsets.c new file +5
-0+#if (__GNUC__ <4 ) +#error Your compiler should upgrade to uc4 +#error Known good compilers: 4.2.2 +#endif +If your compiler situation is this screwed up, then you need to be erroring out in the
Makefile, and you can most certainly kill off that gcc 2.x cruft.
OK.
Quoted 42 lines
Quoted 42 lines
+++
b/arch/unicore32/kernel/vmlinux.lds.Sarch/unicore32/kernel/asm-offsets.c new file +39
-0@@ -0,0 +1,120 @@ +/* +* linux/arch/unicore32/kernel/vmlinux.lds.S +* +* Code specific to PKUnity SoC and UniCore ISA +* +* Copyright (C) 2001-2010 GUAN Xue-tao +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 as +* published by the Free Software Foundation. +*/ + +#include <asm-generic/vmlinux.lds.h> +#include <asm/thread_info.h> +#include <asm/memory.h> +#include <asm/page.h> + +OUTPUT_ARCH (unicore32) +ENTRY (stext ) + +jiffies = jiffies_64; + +SECTIONS +{ + . = PAGE_OFFSET + TEXT_OFFSET; + + .init : { /* Init code and data */ + _stext = .; + _sinittext = .; +HEAD_TEXT + INIT_TEXT + _einittext = .; + + INIT_SETUP(16) + + INIT_CALLS + CON_INITCALL + SECURITY_INITCALL +INIT_RAM_FS
Quoted 8 lines
arch/unicore32/kernel/asm-offsets.c line 44
Quoted 5 lines
arch/unicore32/kernel/asm-offsets.c new file +5
-0+ + __init_begin = _stext; + INIT_DATA + } +This looks really broken, please take a look at
asm-generic/vmlinux.lds.hand use that as a model. Any reasons you have for needing to deviate from that should be thoroughly explained.
Ok, I will rewrite this file lator.
Thanks paul.
Guan Xuetao
Hi Guan.
A few nits.
arch/unicore32/Makefile line 24
Quoted 2 lines
arch/unicore32/Makefile new file +2
-0+# Explicitly specifiy 32-bit UniCore ISA: +KBUILD_CFLAGS +=$(call cc-option,-municore32)
If gcc does not support -municore32 then I assume it is a wrong gcc version used.
So just add it unconditionally.
The cc-option macro is used to add options to gcc iff gcc supports this option. So each time you use cc-option we actually run gcc to determine if the opton is supported.
Also as a general rule add a space after the equal sign:
Quoted 1 line
+KBUILD_CFLAGS += -municore32
^
arch/unicore32/Makefile line 38
Quoted 3 lines
arch/unicore32/Makefile new file +3
-0+ +#Default value +head-y := arch/unicore32/kernel/head.o arch/unicore32/kernel/init_task.o
Break longer lines in two like this:
Review
Quoted 2 lines
(quoted diff) +2
-0+head-y := arch/unicore32/kernel/head.o +head-y += arch/unicore32/kernel/init_task.o
Note: I see lots of Makefile where longer lines are continued on the next line using a '\'. But like in regular C code to use an incremental assignment looks just better / is more clear.
arch/unicore32/Makefile line 42
Quoted 4 lines
arch/unicore32/Makefile new file +4
-0+textofs-y := 0x00408000 + +# The byte offset of the kernel image in RAM from the start of RAM. +TEXT_OFFSET := $(textofs-y)
If you are going to have different TEXT_OFFSET's then I suggest to move this to KConfig as an "hex "Text offset" config option.
You can set default values dependign on BSP etc.
Also defiing stuff here just to export it for use in boot/ has always looked like a strange concept - but many archs do so today. You do not export TEXT_OFFSET but I guess this is a bug?
Review
Quoted 2 lines
(quoted diff) +2
-0+ +export TEXT_OFFSET GZFLAGS
This variable is never used.
arch/unicore32/Makefile line 55
Quoted 11 lines
arch/unicore32/Makefile new file +11
-0+ +core-y += arch/unicore32/kernel/ arch/unicore32/mm/ +core-$(CONFIG_UNICORE_FPU_F64) += arch/unicore32/uc-f64/ + +drivers-$(CONFIG_ARCH_PUV3) += drivers/staging/puv3/ + +libs-y += arch/unicore32/lib/ +# include libc.a in libs-y for string functions, like memcpy and so on. +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libc.a) +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) +
The other three archs that uses libgcc use:
$(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
So when I read the above I am confused why it looks different than the others. For libc I guess you do nto have that option and what you do is fine there.
arch/unicore32/Makefile line 131
Quoted 4 lines
arch/unicore32/Makefile new file +4
-0+ +CLEAN_FILES += $(ASM_GENERIC_HEADERS) + +# We use MRPROPER_FILES and CLEAN_FILES now
Stale comment
arch/unicore32/Makefile line 143
Quoted 3 lines
arch/unicore32/Makefile new file +3
-0+ echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' + echo ' (distribution) /sbin/$(INSTALLKERNEL) or' + echo ' install to $$(INSTALL_PATH) and run lilo'
I do not think the three lines above is correct for unicore32. Looks like they are left from a copy from x86.
Sam
Quoted 20 lines
-----Original Message-----
From: Sam Ravnborg [mailto:[email protected]]
Sent: Saturday, January 08, 2011 3:21 PM
To: Guan Xuetao
Cc: 'Paul Mundt'; [email protected]; [email protected]
Subject: Re: [PATCHv1 01/12] unicore32 core architecture: build infrastructureHi Guan.
A few nits.
arch/unicore32/Makefile line 24
Quoted 2 lines
arch/unicore32/Makefile new file +2
-0+# Explicitly specifiy 32-bit UniCore ISA: +KBUILD_CFLAGS +=$(call cc-option,-municore32)If gcc does not support -municore32 then I assume it is a wrong gcc version used.
So just add it unconditionally.
Quoted 3 lines
The cc-option macro is used to add options to gcc iff gcc supports this option. So each time you use cc-option we actually run gcc to determine if the opton is supported.
Corrected.
Quoted 4 lines
Also as a general rule add a space after the equal sign:
Quoted 1 line
+KBUILD_CFLAGS += -municore32
^
Ok.
Quoted 11 lines
arch/unicore32/Makefile line 38
Quoted 3 lines
arch/unicore32/Makefile new file +3
-0+ +#Default value +head-y := arch/unicore32/kernel/head.o arch/unicore32/kernel/init_task.oBreak longer lines in two like this:
Review
Quoted 2 lines
(quoted diff) +2
-0+head-y := arch/unicore32/kernel/head.o +head-y += arch/unicore32/kernel/init_task.oNote: I see lots of
Makefilewhere longer lines are continued on the next line using a '\'. But like in regular C code to use an incremental assignment looks just better / is more clear.
Ok.
Quoted 8 lines
arch/unicore32/Makefile line 42
Quoted 4 lines
arch/unicore32/Makefile new file +4
-0+textofs-y := 0x00408000 + +# The byte offset of the kernel image in RAM from the start of RAM. +TEXT_OFFSET := $(textofs-y)If you are going to have different TEXT_OFFSET's then I suggest to move this to KConfig as an "hex "Text offset" config option.
You can set default values dependign on BSP etc.
There is no different TEXT_OFFSET.
Quoted 4 lines
Also defiing stuff here just to export it for use in boot/ has always looked like a strange concept - but many archs do so today. You do not export
TEXT_OFFSETbut I guess this is a bug?
I need TEXT_OFFSET for kernel/ and boot/, so export it. What's the better method?
Quoted 4 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ +export TEXT_OFFSET GZFLAGSThis variable is never used.
GZFLAGS is removed.
Quoted 16 lines
arch/unicore32/Makefile line 55
Quoted 13 lines
arch/unicore32/Makefile new file +11
-0+ +core-y += arch/unicore32/kernel/ arch/unicore32/mm/ +core-$(CONFIG_UNICORE_FPU_F64) += arch/unicore32/uc-f64/ + +drivers-$(CONFIG_ARCH_PUV3) += drivers/staging/puv3/ + +libs-y += arch/unicore32/lib/ +# include libc.a in libs-y for string functions, like memcpy and so on. +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libc.a) +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) +The other three archs that uses libgcc use:
Quoted 4 lines
$(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)So when I read the above I am confused why it looks different than the others. For libc I guess you do nto have that option and what you do is fine there.
It's the same with -print-libgcc-file-name and -print-file-name=libgcc.a. And we need libc.a for string like functions.
Quoted 7 lines
arch/unicore32/Makefile line 131
Quoted 5 lines
arch/unicore32/Makefile new file +4
-0+ +CLEAN_FILES += $(ASM_GENERIC_HEADERS) + +# We use MRPROPER_FILES and CLEAN_FILES nowStale comment
Removed.
Quoted 8 lines
arch/unicore32/Makefile line 143
Quoted 5 lines
arch/unicore32/Makefile new file +3
-0+ echo ' Install using (your) ~/bin/$(INSTALLKERNEL) or' + echo ' (distribution) /sbin/$(INSTALLKERNEL) or' + echo ' install to $$(INSTALL_PATH) and run lilo'I do not think the three lines above is correct for unicore32. Looks like they are left from a copy from x86.
Removed.
Quoted 2 lines
Sam
Thanks Sam.
Guan Xuetao
Quoted 8 lines
Quoted 8 lines
arch/unicore32/Makefile line 42
Quoted 4 lines
arch/unicore32/Makefile new file +4
-0+textofs-y := 0x00408000 + +# The byte offset of the kernel image in RAM from the start of RAM. +TEXT_OFFSET := $(textofs-y)If you are going to have different TEXT_OFFSET's then I suggest to move this to KConfig as an "hex "Text offset" config option.
You can set default values dependign on BSP etc.
Quoted 7 lines
There is no different
TEXT_OFFSET.Quoted 4 lines
Also defiing stuff here just to export it for use in boot/ has always looked like a strange concept - but many archs do so today. You do not export
TEXT_OFFSETbut I guess this is a bug?I need
TEXT_OFFSETforkernel/and boot/, so export it.
I would suggest to move this to you Kconfig file.
something like this:
# The byte offset of the kernel image in RAM from the start of RAM config UNICORE32_TEXT_OFFSET
hex default 0x00408000
Then you have the symbol available as CONFIG_UNICORE32_TEXT_OFFSET both in your Makefiles and in your source files.
Quoted 15 lines
Quoted 15 lines
arch/unicore32/Makefile line 55
Quoted 12 lines
arch/unicore32/Makefile new file +11
-0+ +core-y += arch/unicore32/kernel/ arch/unicore32/mm/ +core-$(CONFIG_UNICORE_FPU_F64) += arch/unicore32/uc-f64/ + +drivers-$(CONFIG_ARCH_PUV3) += drivers/staging/puv3/ + +libs-y += arch/unicore32/lib/ +# include libc.a in libs-y for string functions, like memcpy and so on. +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libc.a) +libs-y += $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a) +The other three archs that uses libgcc use:
Quoted 6 lines
Quoted 4 lines
$(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)So when I read the above I am confused why it looks different than the others. For libc I guess you do nto have that option and what you do is fine there.
It's the same with -print-libgcc-file-name and -print-file-name=libgcc.a. And we need libc.a for string like functions.
And then they use equal methods - OK.
Sam
Quoted 28 lines
-----Original Message-----
From: Sam Ravnborg [mailto:[email protected]]
Sent: Saturday, January 08, 2011 7:48 PM
To: Guan Xuetao
Cc: 'Paul Mundt'; [email protected]; [email protected]
Subject: Re: [PATCHv1 01/12] unicore32 core architecture: build infrastructureQuoted 8 lines
Quoted 8 lines
arch/unicore32/Makefile line 42
Quoted 4 lines
arch/unicore32/Makefile new file +4
-0+textofs-y := 0x00408000 + +# The byte offset of the kernel image in RAM from the start of RAM. +TEXT_OFFSET := $(textofs-y)If you are going to have different TEXT_OFFSET's then I suggest to move this to KConfig as an "hex "Text offset" config option.
You can set default values dependign on BSP etc.Quoted 7 lines
There is no different
TEXT_OFFSET.Quoted 4 lines
Also defiing stuff here just to export it for use in boot/ has always looked like a strange concept - but many archs do so today. You do not export
TEXT_OFFSETbut I guess this is a bug?I need
TEXT_OFFSETforkernel/and boot/, so export it.I would suggest to move this to you
Kconfigfile.
something like this:
Quoted 7 lines
# The byte offset of the kernel image in RAM from the start of RAM config
UNICORE32_TEXT_OFFSEThex default 0x00408000Then you have the symbol available as
CONFIG_UNICORE32_TEXT_OFFSETboth in your Makefiles and in your source files.
Thanks.
Because TEXT_OFFSET is not changed in different machines or in configuration time, I move it into mach-spec memory.h and rename it KERNEL_IMAGE_START.
Guan Xuetao
Quoted 2 lines
Because
TEXT_OFFSETis not changed in different machines or in configuration time, I move it into mach-specmemory.hand rename itKERNEL_IMAGE_START.
Good!
Sam
Arnd Bergmann
maintainerQuoted 3 lines · Guan Xuetao
From: Guan Xuetao <[email protected]>
This patch implements build infrastructure.
Sorry for the late reply, I was planning to do the new review earlier, but didn't get to it before the Christmas break.
Overall, I can see that there has been a lot of good progress in the code since the original versions that I looked at, very nice!
Quoted 13 lines
arch/unicore32/.gitignore new file +7
-0@@ -0,0 +1,70 @@ +# +# Generated include files +# +include/asm/atomic.h +include/asm/auxvec.h +include/asm/bitsperlong.h +include/asm/bug.h
arch/unicore32/.gitignore line 16
Quoted 10 lines
arch/unicore32/.gitignore new file +9
-0+include/asm/bugs.h +include/asm/cputime.h +include/asm/current.h +include/asm/device.h +include/asm/emergency-restart.h +include/asm/errno.h +include/asm/fb.h +include/asm/fcntl.h +include/asm/hardirq.h
Maybe it would be better to put these files into a separate directory, like arch/unicore32/include/generated/asm, to make it easier to separate them from the other files and avoid listing them all in .gitignore besides the other places.
It's certainly good to see so many of these files.
arch/unicore32/.gitignore
Quoted 12 lines
arch/unicore32/.gitignore new file +12
-0+config GENERIC_GPIO + def_bool y + +config GENERIC_CLOCKEVENTS + bool + +config NO_IOPORT + bool + +config GENERIC_HARDIRQS + bool + default y
You are somewhat inconsistent with "def_bool", "default y" and "select FOO", which all have the same effect. I would recommend using def_bool y where possible.
arch/unicore32/.gitignore
Quoted 2 lines
arch/unicore32/.gitignore new file +2
-0+config REALMODE + bool
I don't see this being used anywhere. Is it just a leftover from an earlier version, or did I miss something?
arch/unicore32/.gitignore
Quoted 13 lines
arch/unicore32/.gitignore new file +13
-0+choice + prompt "PKUnity system type" + default ARCH_PUV3 + + config ARCH_PUV3 + bool "PKUnity v3 (SuperK)" + select CPU_UCV2 + select GENERIC_CLOCKEVENTS + select HAVE_CLK + select ARCH_REQUIRE_GPIOLIB + select ARCH_HAS_CPUFREQ + +endchoice
As long as there is only one option, you can drop the entire "choice" statement.
Quoted 6 lines
arch/unicore32/.gitignore new file +6
-0+config DEBUG_USER + bool "Verbose user fault messages" + help + When a user program crashes due to an exception, the kernel can + print a brief message explaining what the problem was. This is + sometimes helpful for debugging but serves no purpose on a
arch/unicore32/.gitignore
Quoted 10 lines
arch/unicore32/.gitignore new file +10
-0+ production system. Most people should say N here. + + In addition, you need to pass user_debug=N on the kernel command + line to enable this feature. N consists of the sum of: + + 1 - undefined instruction events + 2 - system calls + 4 - invalid data aborts + 8 - SIGSEGV faults + 16 - SIGBUS faults
We already have four architectures doing this using the "exception-trace" sysctl and the show_unhandled_signals variable. Please follow what those architectures are doing, or remove the option and all code depending on it.
Arnd
Quoted 8 lines
-----Original Message-----
From: Arnd Bergmann [mailto:[email protected]]
Sent: Friday, January 07, 2011 8:19 AM
To: Guan Xuetao
Cc: [email protected]; [email protected]
Subject: Re: [PATCHv1 01/12] unicore32 core architecture: build infrastructure
Quoted 7 lines
Quoted 3 lines · Guan Xuetao
From: Guan Xuetao <[email protected]>
This patch implements build infrastructure.
Sorry for the late reply, I was planning to do the new review earlier, but didn't get to it before the Christmas break.
Thanks for your review.
Quoted 24 lines
Overall, I can see that there has been a lot of good progress in the code since the original versions that I looked at, very nice!
Quoted 20 lines
arch/unicore32/.gitignore new file +14
-0@@ -0,0 +1,70 @@ +# +# Generated include files +# +include/asm/atomic.h +include/asm/auxvec.h +include/asm/bitsperlong.h +include/asm/bug.h +include/asm/bugs.h +include/asm/cputime.h +include/asm/current.h +include/asm/device.h +include/asm/emergency-restart.h +include/asm/errno.h +include/asm/fb.h
Quoted 8 lines
arch/unicore32/.gitignore line 16
Quoted 3 lines
arch/unicore32/.gitignore new file +2
-0+include/asm/fcntl.h +include/asm/hardirq.hMaybe it would be better to put these files into a separate directory, like
arch/unicore32/include/generated/asm, to make it easier to separate them from the other files and avoid listing them all in .gitignore besides the other places.
That's great, and I make the following changes:
commit 2319043024c3db0eedfadf63b37714e14325104d
Author: GuanXuetao <[email protected]> Date: Sat Jan 8 16:12:47 2011 +0800
unicore32: move one-line asm-generic headers into arch/unicore32/include/generated/asm
however, 'make headers_install' can't work with two asm dirs
arch/unicore32/.gitignore +1 -51
@@ -1,57 +1,7 @@ # # Generated include files # -include/asm/atomic.h -include/asm/auxvec.h -include/asm/bitsperlong.h -include/asm/bug.h -include/asm/bugs.h -include/asm/cputime.h -include/asm/current.h -include/asm/device.h -include/asm/div64.h -include/asm/emergency-restart.h -include/asm/errno.h -include/asm/fb.h -include/asm/fcntl.h -include/asm/hardirq.h -include/asm/hw_irq.h -include/asm/ioctl.h -include/asm/ioctls.h -include/asm/ipcbuf.h -include/asm/irq_regs.h -include/asm/kdebug.h -include/asm/kmap_types.h -include/asm/local.h -include/asm/mman.h -include/asm/module.h -include/asm/msgbuf.h -include/asm/param.h -include/asm/parport.h -include/asm/percpu.h -include/asm/poll.h -include/asm/posix_types.h -include/asm/resource.h -include/asm/scatterlist.h -include/asm/sections.h -include/asm/sembuf.h -include/asm/serial.h -include/asm/shmbuf.h -include/asm/shmparam.h -include/asm/siginfo.h -include/asm/signal.h -include/asm/socket.h -include/asm/sockios.h -include/asm/statfs.h -include/asm/termbits.h -include/asm/termios.h -include/asm/topology.h -include/asm/types.h -include/asm/ucontext.h -include/asm/unaligned.h -include/asm/user.h -include/asm/vga.h -include/asm/xor.h +include/generated # # Generated ld script file #
arch/unicore32/Makefile +26 -53
93 lines not on this page · raw message
However, 'make headers_install' can't work with two asm dirs.
The ugly alternative method is copying all files in arch/unicore32/include/asm to arch/unicore32/include/generated/asm. Then using the latter for headers_install.
Quoted 19 lines
It's certainly good to see so many of these files.
arch/unicore32/.gitignore
Quoted 12 lines
arch/unicore32/.gitignore new file +12
-0+config GENERIC_GPIO + def_bool y + +config GENERIC_CLOCKEVENTS + bool + +config NO_IOPORT + bool + +config GENERIC_HARDIRQS + bool + default yYou are somewhat inconsistent with "
def_bool", "default y" and "select FOO", which all have the same effect. I would recommend usingdef_booly where possible.
Ok.
Quoted 6 lines
arch/unicore32/.gitignore
Quoted 3 lines
arch/unicore32/.gitignore new file +2
-0+config REALMODE + boolI don't see this being used anywhere. Is it just a leftover from an earlier version, or did I miss something?
Removed.
Quoted 17 lines
Quoted 4 lines
arch/unicore32/.gitignore new file +3
-0+choice + prompt "PKUnity system type" + default ARCH_PUV3arch/unicore32/.gitignore
Quoted 10 lines
arch/unicore32/.gitignore new file +10
-0+ + config ARCH_PUV3 + bool "PKUnity v3 (SuperK)" + select CPU_UCV2 + select GENERIC_CLOCKEVENTS + select HAVE_CLK + select ARCH_REQUIRE_GPIOLIB + select ARCH_HAS_CPUFREQ + +endchoiceAs long as there is only one option, you can drop the entire "choice" statement.
Ok.
Quoted 14 lines
Quoted 14 lines
arch/unicore32/.gitignore new file +13
-0+config DEBUG_USER + bool "Verbose user fault messages" + help + When a user program crashes due to an exception, the kernel can + print a brief message explaining what the problem was. This is + sometimes helpful for debugging but serves no purpose on a + production system. Most people should say N here. + + In addition, you need to pass user_debug=N on the kernel command + line to enable this feature. N consists of the sum of: + + 1 - undefined instruction events + 2 - system calls
Quoted 8 lines
arch/unicore32/.gitignore
Quoted 3 lines
arch/unicore32/.gitignore new file +3
-0+ 4 - invalid data aborts + 8 - SIGSEGV faults + 16 - SIGBUS faultsWe already have four architectures doing this using the "exception-trace" sysctl and the
show_unhandled_signalsvariable. Please follow what those architectures are doing, or remove the option and all code depending on it.
Removed now.
Quoted 3 lines
Arnd
Thanks Arnd.
Guan Xuetao
Quoted 33 lines
Quoted 24 lines
Overall, I can see that there has been a lot of good progress in the code since the original versions that I looked at, very nice!
Quoted 20 lines
arch/unicore32/.gitignore new file +14
-0@@ -0,0 +1,70 @@ +# +# Generated include files +# +include/asm/atomic.h +include/asm/auxvec.h +include/asm/bitsperlong.h +include/asm/bug.h +include/asm/bugs.h +include/asm/cputime.h +include/asm/current.h +include/asm/device.h +include/asm/emergency-restart.h +include/asm/errno.h +include/asm/fb.hQuoted 8 lines
arch/unicore32/.gitignore line 16
Quoted 3 lines
arch/unicore32/.gitignore new file +2
-0+include/asm/fcntl.h +include/asm/hardirq.hMaybe it would be better to put these files into a separate directory, like
arch/unicore32/include/generated/asm, to make it easier to separate them from the other files and avoid listing them all in .gitignore besides the other places.
Quoted 1 line
That's great, and I make the following changes:
...
I have made a second attempt to provice generic support for asm-generic headers as you likely have seen.
IMO you shall keep your own solution until we get generic support.
In other words - you shall avoid being dependent on this.
Sam