Reorganization to better fit platform/target conventions.

This commit is contained in:
Corey Tabaka
2009-04-01 17:35:12 -04:00
committed by Travis Geiselbrecht
parent 6a5b7a0420
commit 47db8d46e4
18 changed files with 31 additions and 34 deletions

View File

@@ -21,7 +21,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <arch/x86.h>
#include <platform/x86.h>
#include <platform/pc.h>
#include <platform/console.h>
#include <string.h>
#include <stdlib.h>

View File

@@ -25,7 +25,7 @@
#include <printf.h>
#include <kernel/thread.h>
#include <arch/x86.h>
#include <platform/x86/memmap.h>
#include <platform/pc/memmap.h>
#include <platform/console.h>
#include <platform/keyboard.h>
#include <platform/debug.h>

View File

@@ -20,11 +20,11 @@
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef __PLATFORM_X86_H
#define __PLATFORM_X86_H
#ifndef __PLATFORM_PC_H
#define __PLATFORM_PC_H
#include <platform/x86/memmap.h>
#include <platform/x86/iomap.h>
#include <platform/pc/memmap.h>
#include <platform/pc/iomap.h>
/* NOTE: keep arch/x86/crt0.S in sync with these definitions */

View File

@@ -29,7 +29,7 @@
#include <arch/ops.h>
#include <arch/x86.h>
#include "platform_p.h"
#include <platform/x86.h>
#include <platform/pc.h>
void x86_gpf_handler(struct x86_iframe *frame);
void x86_invop_handler(struct x86_iframe *frame);

View File

@@ -29,7 +29,7 @@
#include <platform/interrupts.h>
#include <platform/console.h>
#include <platform/timer.h>
#include <platform/x86.h>
#include <platform/pc.h>
#include "platform_p.h"
#include <arch/x86.h>

View File

@@ -25,7 +25,7 @@
#include <arch/x86/mmu.h>
#include <platform.h>
#include "platform_p.h"
#include <platform/x86.h>
#include <platform/pc.h>
#include <platform/multiboot.h>
#include <platform/console.h>
#include <platform/keyboard.h>

View File

@@ -29,7 +29,7 @@
#include <platform/interrupts.h>
#include <platform/console.h>
#include <platform/timer.h>
#include <platform/x86.h>
#include <platform/pc.h>
#include "platform_p.h"
#include <arch/x86.h>

16
project/pc-x86-test.mk Normal file
View File

@@ -0,0 +1,16 @@
# top level project rules for the pc-x86-test project
#
LOCAL_DIR := $(GET_LOCAL_DIR)
TARGET := pc-x86
MODULES += \
app/tests \
app/shell
# extra rules to copy the pc-x86.conf file to the build dir
#$(BUILDDIR)/pc-x86.conf: $(LOCAL_DIR)/pc-x86.conf
# @echo copy $< to $@
# $(NOECHO)cp $< $@
#EXTRA_BUILDDEPS += $(BUILDDIR)/pc-x86.conf
#GENERATED += $(BUILDDIR)/pc-x86.conf

View File

@@ -1,18 +0,0 @@
# top level project rules for the x86-test project
#
LOCAL_DIR := $(GET_LOCAL_DIR)
TARGET := x86
#DEFINES += \
# USE_UNDERSCORE=1
MODULES += \
app/tests \
app/shell
# extra rules to copy the x86.conf file to the build dir
#$(BUILDDIR)/x86.conf: $(LOCAL_DIR)/x86.conf
# @echo copy $< to $@
# $(NOECHO)cp $< $@
#EXTRA_BUILDDEPS += $(BUILDDIR)/x86.conf
#GENERATED += $(BUILDDIR)/x86.conf

5
target/pc-x86/rules.mk Normal file
View File

@@ -0,0 +1,5 @@
# mostly null target configuration for pc-x86
LOCAL_DIR := $(GET_LOCAL_DIR)
PLATFORM := pc

View File

@@ -1,6 +0,0 @@
# mostly null target configuration for x86, since there's only one real
# implementation.
LOCAL_DIR := $(GET_LOCAL_DIR)
PLATFORM := x86