Utilize hekate's BDK for hekate main and Nyx
This commit is contained in:
@@ -7,6 +7,8 @@ include $(DEVKITARM)/base_rules
|
||||
TARGET := libsys_lp0
|
||||
BUILD := ../../build/$(TARGET)
|
||||
OUTPUT := ../../output
|
||||
BDKDIR := bdk
|
||||
BDKINC := -I../../$(BDKDIR)
|
||||
|
||||
OBJS = $(addprefix $(BUILD)/,\
|
||||
sys_sdramlp0.o \
|
||||
@@ -21,7 +23,7 @@ LDFLAGS = $(ARCH) -fpie -pie -nostartfiles -lgcc
|
||||
all: $(TARGET).bso
|
||||
$(BUILD)/%.o: ./%.c
|
||||
@mkdir -p "$(BUILD)"
|
||||
@$(CC) $(CFLAGS) -c $< -o $@
|
||||
@$(CC) $(CFLAGS) $(BDKINC) -c $< -o $@
|
||||
|
||||
$(TARGET).bso: $(OBJS)
|
||||
@$(CC) $(LDFLAGS) -e _modInit $^ -o $(OUTPUT)/$(TARGET).bso
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "t210.h"
|
||||
#include "pmc_lp0_t210.h"
|
||||
#include "sdram_lp0_param_t210.h"
|
||||
#include "../../common/common_module.h"
|
||||
#include <module.h>
|
||||
|
||||
/*
|
||||
* This function reads SDRAM parameters from the common BCT format and
|
||||
|
||||
Reference in New Issue
Block a user