Build - Renamed $(CONFIG) to $(PLATFORM)
authorJohn Hodge <[email protected]>
Sat, 3 Dec 2011 04:00:15 +0000 (12:00 +0800)
committerJohn Hodge <[email protected]>
Sat, 3 Dec 2011 04:00:15 +0000 (12:00 +0800)
BuildConf/armv7/Makefile.cfg
BuildConf/armv7/default.mk
Kernel/Makefile
Kernel/arch/armv7/Makefile
Kernel/arch/armv7/include/options.h
Kernel/arch/x86/Makefile
Makefile.cfg
RunQemuArm

index f5fa261..9be93a7 100644 (file)
@@ -9,5 +9,8 @@ STRIP = arm-elf-strip
 
 ASSUFFIX = S
 
-CONFIG=realview_pb
+# Default Configuration
+ifeq ($(PLATFORM),)
+       PLATFORM=realview_pb
+endif
 
index 0a85c92..29ef50a 100644 (file)
@@ -1,7 +1,9 @@
 
-ifeq ($(CONFIG),default)
-       $(error Please select a configuration)
+ifeq ($(PLATFORM),default)
+       $(error Please select a platform)
 endif
 
+# Core ARMv7 modules
+
 MODULES += armv7/GIC
 MODULES += Filesystems/InitRD
index 96626e1..c3fbc56 100644 (file)
@@ -21,25 +21,25 @@ ifeq ($(AS_SUFFIX),)
        AS_SUFFIX = S
 endif
 
-ASFLAGS         += -D ARCHDIR_IS_$(ARCHDIR)=1 -DCONFIG_is_$(CONFIG)=1
+ASFLAGS         += -D ARCHDIR_IS_$(ARCHDIR)=1 -D PLATFORM_is_$(PLATFORM)=1
 CPPFLAGS       += -I./include -I./arch/$(ARCHDIR)/include -D_MODULE_NAME_=\"Kernel\"
-CPPFLAGS       += -DARCH=$(ARCH) -DARCHDIR=$(ARCHDIR) -DARCHDIR_IS_$(ARCHDIR)=1 -DCONFIG_is_$(CONFIG)=1
-CPPFLAGS       += -DKERNEL_VERSION=$(KERNEL_VERSION)
+CPPFLAGS       += -D ARCH=$(ARCH) -D ARCHDIR=$(ARCHDIR) -D ARCHDIR_IS_$(ARCHDIR)=1 -D PLATFORM_is_$(PLATFORM)=1
+CPPFLAGS       += -D KERNEL_VERSION=$(KERNEL_VERSION)
 CFLAGS         += -Wall -fno-stack-protector -Wstrict-prototypes -g
 CFLAGS         += -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Winline -Wuninitialized
 CFLAGS          += -O3
 LDFLAGS                += -T arch/$(ARCHDIR)/link.ld -g
 
-ifeq ($(CONFIG),default)
+ifeq ($(PLATFORM),default)
        OBJDIR := obj-$(ARCH)/
        #OBJSUFFIX := .$(ARCH)
        BIN := ../Acess2.$(ARCH).bin
        GZBIN := ../Acess2.$(ARCH).gz
 else
-       OBJDIR := obj-$(ARCH)-$(CONFIG)/
-       #OBJSUFFIX := .$(ARCH)-$(CONFIG)
-       BIN := ../Acess2.$(ARCH)-$(CONFIG).bin
-       GZBIN := ../Acess2.$(ARCH)-$(CONFIG).gz
+       OBJDIR := obj-$(ARCH)-$(PLATFORM)/
+       #OBJSUFFIX := .$(ARCH)-$(PLATFORM)
+       BIN := ../Acess2.$(ARCH)-$(PLATFORM).bin
+       GZBIN := ../Acess2.$(ARCH)-$(PLATFORM).gz
 endif
 
 ifeq ($(DEBUG_BUILD),yes)
index b041aa9..2a86424 100644 (file)
@@ -7,8 +7,7 @@ CPPFLAGS        =
 CFLAGS         =
 ASFLAGS                =
 
-ASFLAGS += -DCONFIG_is_$(CONFIG)=1
-CPPFLAGS += -DMMU_PRESENT=$(MMU_PRESENT)
+CPPFLAGS += -DMMU_PRESENT=1
 LDFLAGS += `$(CC) --print-libgcc-file-name`
 
 A_OBJ  = start.ao main.o lib.o lib.ao time.o pci.o debug.o
index fad529e..ffbaa12 100644 (file)
@@ -12,7 +12,7 @@
 
 //#define PCI_PADDR    0x60000000      // Realview (Non-PB)
 
-#if CONFIG_is_realview_pb
+#if PLATFORM_is_realview_pb
 # define UART0_PADDR   0x10009000      // Realview
 # define GICI_PADDR    0x1e000000
 # define GICD_PADDR    0x1e001000
@@ -20,7 +20,7 @@
 
 #endif
 
-#if CONFIG_is_trimslice        // Tegra2
+#if PLATFORM_is_trimslice      // Tegra2
 # define UART0_PADDR   0x70006000
 # define GICD_PADDR    0x50041000
 # define GICI_PADDR    0x60004000      // TODO: Is this actually a GIC-I?
index 0683d58..c83a5af 100644 (file)
@@ -11,9 +11,9 @@ ASFLAGS               = -f elf
 
 USE_MP=0
 
-ifeq ($(CONFIG),default)
+ifeq ($(PLATFORM),default)
        USE_MP=0
-else ifeq ($(CONFIG),smp)
+else ifeq ($(PLATFORM),smp)
        USE_MP=1
 endif
 
index 716eb5f..d14b29c 100644 (file)
@@ -40,8 +40,8 @@ ifneq ($(ARCH),host)
  endif
 endif
 
-ifeq ($(CONFIG),)
-       CONFIG := default
+ifeq ($(PLATFORM),)
+       PLATFORM := default
 endif
 
 # Makefile.user.cfg is not part of the Acess git repo,
@@ -55,7 +55,7 @@ MODULES += Filesystems/Ext2
 MODULES += Filesystems/FAT
 MODULES += Filesystems/NTFS
 
-include $(ACESSDIR)/BuildConf/$(ARCH)/$(CONFIG).mk
+include $(ACESSDIR)/BuildConf/$(ARCH)/$(PLATFORM).mk
 
 MODULES += IPStack     # So the other modules are loaded before it
 #DYNMODS := USB/Core
index b15d617..f506599 100755 (executable)
@@ -5,7 +5,7 @@ QEMU=qemu-system-arm
 USE_GDB=
 
 _SYSTEM=realview-pb-a8
-_KERNEL=Acess2.armv7.bin
+_KERNEL=Acess2.armv7-realview_pb.bin
 
 QEMU_PARAMS=""
 _NETTYPE="user"

UCC git Repository :: git.ucc.asn.au