change btld_conf.h
remove inclde u.h
This commit is contained in:
parent
dce27c5d22
commit
7466f0ff8c
@ -10,7 +10,7 @@ OBJS += $(ESRCS:.c=.o)
|
||||
|
||||
include $(SDIR)/Makefile.inc
|
||||
|
||||
CFLAGS += -no-pie
|
||||
CFLAGS += -no-pie -g
|
||||
CPPFLAGS += -DLOADADDR=$(LOADADDR) -DLINKADDR=$(LINKADDR) -DBOOTMAGIC=$(BOOTMAGIC) -DBOOTSTACKOFF=$(BOOTSTACKOFF)
|
||||
CPPFLAGS += -I $(SDIR)
|
||||
LDFLAGS += -s -Ttext=$(LINKADDR) -T ld.script --no-omagic -M
|
||||
|
||||
@ -1,3 +1,6 @@
|
||||
#define elem(x) ((int)(sizeof(x)/sizeof((x)[0])))
|
||||
#define nil ((void*)0)
|
||||
|
||||
#define FAT16_MAX (0x40000)
|
||||
#define DOSPTYP_UNUSED 0x00
|
||||
#define DOSPTYP_FAT16 0x06
|
||||
@ -10,3 +13,8 @@
|
||||
#define DOSMBR_SIGNATURE_OFF 0x1fe
|
||||
|
||||
#define PARTSZ 16
|
||||
|
||||
#define u8 unsigned char
|
||||
#define u16 unsigned short
|
||||
#define u32 unsigned int
|
||||
#define u64 unsigned long long
|
||||
@ -11,7 +11,7 @@ CPPFLAGS = -I $(SDIR)
|
||||
${PROG}: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $(BDIR)/$(PROG) $(OBJS)
|
||||
|
||||
$(OBJS): $(SDIR)/u.h $(SDIR)/btld_conf.h $(SDIR)/btld_disk.h elf32.h
|
||||
$(OBJS): $(SDIR)/btld_conf.h $(SDIR)/btld_disk.h elf32.h
|
||||
|
||||
clean:
|
||||
rm -rf $(PROG) $(OBJS)
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
#include <sys/wait.h>
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
#include <u.h>
|
||||
#include "btld_conf.h"
|
||||
#include "btld_disk.h"
|
||||
#include "elf32.h"
|
||||
|
||||
@ -11,7 +11,7 @@ CPPFLAGS = -I $(SDIR)
|
||||
${PROG}: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $(BDIR)/$(PROG) $(OBJS)
|
||||
|
||||
$(OBJS): $(SDIR)/u.h $(SDIR)/btld_conf.h $(SDIR)/btld_disk.h
|
||||
$(OBJS): $(SDIR)/btld_conf.h $(SDIR)/btld_disk.h
|
||||
|
||||
clean:
|
||||
rm -f $(PROG) $(OBJS)
|
||||
|
||||
@ -10,7 +10,6 @@
|
||||
#include <endian.h>
|
||||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
#include <u.h>
|
||||
#include "btld_conf.h"
|
||||
#include "btld_disk.h"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user