-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Linus Torvalds
committed
Apr 13, 2009
1 parent
0336400
commit 5e589b5
Showing
203 changed files
with
17,148 additions
and
27,152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: be79b0928900ffb9567893546a8285054e772a71 | ||
refs/heads/master: d3ab02a7c51fcbceafe999a515cc8bc4f0d0cfee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,3 +109,6 @@ config HAVE_CLK | |
|
||
config HAVE_DMA_API_DEBUG | ||
bool | ||
|
||
config HAVE_DEFAULT_NO_SPIN_MUTEXES | ||
bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
# For a description of the syntax of this configuration file, | ||
# see Documentation/kbuild/kconfig-language.txt. | ||
|
||
mainmenu "Linux/Microblaze Kernel Configuration" | ||
|
||
config MICROBLAZE | ||
def_bool y | ||
select HAVE_LMB | ||
|
||
config SWAP | ||
def_bool n | ||
|
||
config RWSEM_GENERIC_SPINLOCK | ||
def_bool y | ||
|
||
config RWSEM_XCHGADD_ALGORITHM | ||
bool | ||
|
||
config ARCH_HAS_ILOG2_U32 | ||
def_bool n | ||
|
||
config ARCH_HAS_ILOG2_U64 | ||
def_bool n | ||
|
||
config GENERIC_FIND_NEXT_BIT | ||
def_bool y | ||
|
||
config GENERIC_HWEIGHT | ||
def_bool y | ||
|
||
config GENERIC_HARDIRQS | ||
def_bool y | ||
|
||
config GENERIC_IRQ_PROBE | ||
def_bool y | ||
|
||
config GENERIC_CALIBRATE_DELAY | ||
def_bool y | ||
|
||
config GENERIC_TIME | ||
def_bool y | ||
|
||
config GENERIC_TIME_VSYSCALL | ||
def_bool n | ||
|
||
config GENERIC_CLOCKEVENTS | ||
def_bool y | ||
|
||
config GENERIC_HARDIRQS_NO__DO_IRQ | ||
def_bool y | ||
|
||
config PCI | ||
depends on !MMU | ||
def_bool n | ||
|
||
config NO_DMA | ||
depends on !MMU | ||
def_bool n | ||
|
||
source "init/Kconfig" | ||
|
||
source "kernel/Kconfig.freezer" | ||
|
||
source "arch/microblaze/platform/Kconfig.platform" | ||
|
||
menu "Processor type and features" | ||
|
||
source kernel/time/Kconfig | ||
|
||
source "kernel/Kconfig.preempt" | ||
|
||
source "kernel/Kconfig.hz" | ||
|
||
config MMU | ||
def_bool n | ||
|
||
config NO_MMU | ||
bool | ||
depends on !MMU | ||
default y | ||
|
||
comment "Boot options" | ||
|
||
config CMDLINE_BOOL | ||
bool "Default bootloader kernel arguments" | ||
|
||
config CMDLINE | ||
string "Default kernel command string" | ||
depends on CMDLINE_BOOL | ||
default "console=ttyUL0,115200" | ||
help | ||
On some architectures there is currently no way for the boot loader | ||
to pass arguments to the kernel. For these architectures, you should | ||
supply some command-line options at build time by entering them | ||
here. | ||
|
||
config CMDLINE_FORCE | ||
bool "Force default kernel command string" | ||
depends on CMDLINE_BOOL | ||
default n | ||
help | ||
Set this to have arguments from the default kernel command string | ||
override those passed by the boot loader. | ||
|
||
config OF | ||
def_bool y | ||
|
||
config OF_DEVICE | ||
def_bool y | ||
|
||
config PROC_DEVICETREE | ||
bool "Support for device tree in /proc" | ||
depends on PROC_FS | ||
help | ||
This option adds a device-tree directory under /proc which contains | ||
an image of the device tree that the kernel copies from Open | ||
Firmware or other boot firmware. If unsure, say Y here. | ||
|
||
endmenu | ||
|
||
source "mm/Kconfig" | ||
|
||
menu "Exectuable file formats" | ||
|
||
source "fs/Kconfig.binfmt" | ||
|
||
endmenu | ||
|
||
source "net/Kconfig" | ||
|
||
source "drivers/Kconfig" | ||
|
||
source "fs/Kconfig" | ||
|
||
source "arch/microblaze/Kconfig.debug" | ||
|
||
source "security/Kconfig" | ||
|
||
source "crypto/Kconfig" | ||
|
||
source "lib/Kconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# For a description of the syntax of this configuration file, | ||
# see Documentation/kbuild/kconfig-language.txt. | ||
|
||
menu "Kernel hacking" | ||
|
||
source "lib/Kconfig.debug" | ||
|
||
config EARLY_PRINTK | ||
bool "Early printk function for kernel" | ||
default n | ||
help | ||
This option turns on/off early printk messages to console. | ||
First Uartlite node is taken. | ||
|
||
config HEART_BEAT | ||
bool "Heart beat function for kernel" | ||
default n | ||
help | ||
This option turns on/off heart beat kernel functionality. | ||
First GPIO node is taken. | ||
|
||
config DEBUG_BOOTMEM | ||
depends on DEBUG_KERNEL | ||
bool "Debug BOOTMEM initialization" | ||
|
||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" | ||
|
||
# What CPU vesion are we building for, and crack it open | ||
# as major.minor.rev | ||
CPU_VER=$(subst ",,$(CONFIG_XILINX_MICROBLAZE0_HW_VER) ) | ||
CPU_MAJOR=$(shell echo $(CPU_VER) | cut -d '.' -f 1) | ||
CPU_MINOR=$(shell echo $(CPU_VER) | cut -d '.' -f 2) | ||
CPU_REV=$(shell echo $(CPU_VER) | cut -d '.' -f 3) | ||
|
||
export CPU_VER CPU_MAJOR CPU_MINOR CPU_REV | ||
|
||
# Use cpu-related CONFIG_ vars to set compile options. | ||
|
||
# Work out HW multipler support. This is icky. | ||
# 1. Spartan2 has no HW multiplers. | ||
# 2. MicroBlaze v3.x always uses them, except in Spartan 2 | ||
# 3. All other FPGa/CPU ver combos, we can trust the CONFIG_ settings | ||
ifeq (,$(findstring spartan2,$(CONFIG_XILINX_MICROBLAZE0_FAMILY))) | ||
ifeq ($(CPU_MAJOR),3) | ||
CPUFLAGS-1 += -mno-xl-soft-mul | ||
else | ||
# USE_HW_MUL can be 0, 1, or 2, defining a heirarchy of HW Mul support. | ||
CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high | ||
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul | ||
endif | ||
endif | ||
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div | ||
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift | ||
CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP) += -mxl-pattern-compare | ||
|
||
CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER)) | ||
|
||
# The various CONFIG_XILINX cpu features options are integers 0/1/2... | ||
# rather than bools y/n | ||
CFLAGS += $(CPUFLAGS-1) | ||
CFLAGS += $(CPUFLAGS-2) | ||
|
||
# r31 holds current when in kernel mode | ||
CFLAGS += -ffixed-r31 | ||
|
||
LDFLAGS_BLOB := --format binary --oformat elf32-microblaze | ||
|
||
LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name) | ||
|
||
head-y := arch/microblaze/kernel/head.o | ||
libs-y += arch/microblaze/lib/ $(LIBGCC) | ||
core-y += arch/microblaze/kernel/ arch/microblaze/mm/ \ | ||
arch/microblaze/platform/ | ||
|
||
boot := arch/$(ARCH)/boot | ||
|
||
# defines filename extension depending memory management type | ||
ifeq ($(CONFIG_MMU),) | ||
MMUEXT := -nommu | ||
endif | ||
export MMUEXT | ||
|
||
all: linux.bin | ||
|
||
archclean: | ||
$(Q)$(MAKE) $(clean)=$(boot) | ||
|
||
linux.bin linux.bin.gz: vmlinux | ||
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@ | ||
|
||
define archhelp | ||
echo '* linux.bin - Create raw binary' | ||
echo ' linux.bin.gz - Create compressed raw binary' | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# arch/microblaze/boot/Makefile | ||
# | ||
|
||
targets := linux.bin linux.bin.gz | ||
|
||
OBJCOPYFLAGS_linux.bin := -O binary | ||
|
||
$(obj)/linux.bin: vmlinux FORCE | ||
$(call if_changed,objcopy) | ||
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | ||
|
||
$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE | ||
$(call if_changed,gzip) | ||
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')' | ||
|
||
clean-kernel += linux.bin linux.bin.gz |
Oops, something went wrong.