modify include lines and Makefiles

This commit is contained in:
Tomoki Shirasawa
2012-12-17 16:10:56 +09:00
parent 6ff27458f4
commit 0a808057eb
47 changed files with 139 additions and 135 deletions

View File

@@ -1,28 +1,29 @@
CFLAGS=-c -Wall -O
CFLAGS_TEST=-DTEST
all: elfboot elfboot_test
all: elfboot
elfboot: elfboot.bin
cp $^ $@
truncate -s $(shell expr '(' `stat -c '%s' $^` + 4095 ')' / 4096 '*' 4096) $@
elfboot.bin: elfboot.elf
objcopy -O binary $^ $@
$(OBJCOPY) -O binary $^ $@
elfboot.elf: head.o elfboot.raw.o raw.lds
ld $(LDFLAGS_RAW) -T raw.lds -o $@ $^
$(LD) $(LDFLAGS_RAW) -T raw.lds -o $@ $^
elfboot_test: elfboot.test.o test_main.o
gcc $(LDFLAGS) -o $@ $^
$(CC) -o $@ $^
elfboot.raw.o: elfboot.c
gcc $(CFLAGS) -o $@ $^
$(CC) $(CFLAGS) -o $@ $^
elfboot.test.o: elfboot.c
gcc $(CFLAGS) $(CFLAGS_TEST) -o $@ $^
$(CC) $(CFLAGS) $(CFLAGS_TEST) -o $@ $^
clean:
$(RM) elfboot *.bin *.elf elfboot_test *.o
disas:
objdump -b binary -m i386:x86-64 -D elfboot.bin
$(OBJDUMP) -b binary -m i386:x86-64 -D elfboot.bin

View File

@@ -1,5 +1,5 @@
#include <aal/cpu.h>
#include <aal/debug.h>
#include <ihk/cpu.h>
#include <ihk/debug.h>
#include <types.h>
#include <errno.h>
#include <list.h>

View File

@@ -4,7 +4,7 @@
#ifndef __HEADER_X86_COMMON_ARCH_LOCK
#define __HEADER_X86_COMMON_ARCH_LOCK
#include <aal/cpu.h>
#include <ihk/cpu.h>
//#define DEBUG_SPINLOCK

View File

@@ -1,7 +1,7 @@
#ifndef HEADER_X86_COMMON_AAL_IKC_H
#define HEADER_X86_COMMON_AAL_IKC_H
#include <ikc/aal.h>
#include <ikc/ihk.h>
/* manycore side */
int aal_mc_ikc_init_first(struct aal_ikc_channel_desc *,

View File

@@ -1,8 +1,8 @@
#include <cpulocal.h>
#include <aal/atomic.h>
#include <aal/mm.h>
#include <aal/cpu.h>
#include <aal/debug.h>
#include <ihk/atomic.h>
#include <ihk/mm.h>
#include <ihk/cpu.h>
#include <ihk/debug.h>
#include <registers.h>
#include <string.h>

View File

@@ -1,4 +1,4 @@
#include <aal/lock.h>
#include <ihk/lock.h>
#if 0

View File

@@ -1,6 +1,6 @@
#include <aal/cpu.h>
#include <aal/debug.h>
#include <aal/mm.h>
#include <ihk/cpu.h>
#include <ihk/debug.h>
#include <ihk/mm.h>
#include <types.h>
#include <memory.h>
#include <string.h>

View File

@@ -1,5 +1,5 @@
#include <aal/ikc.h>
#include <aal/lock.h>
#include <ihk/ikc.h>
#include <ihk/lock.h>
#include <ikc/msg.h>
#include <memory.h>
#include <string.h>

View File

@@ -1,7 +1,7 @@
#include <aal/perfctr.h>
#include <ihk/perfctr.h>
#include <march.h>
#include <errno.h>
#include <aal/debug.h>
#include <ihk/debug.h>
#include <registers.h>
extern unsigned int *x86_march_perfmap;