modify include lines and Makefiles
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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 *,
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include <aal/lock.h>
|
||||
#include <ihk/lock.h>
|
||||
|
||||
#if 0
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user