Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ include $(DEVKITARM)/gba_rules
# the makefile is found
#
#---------------------------------------------------------------------------------
TARGET := $(notdir $(CURDIR))
TARGET := ezkernel
BUILD := build
SOURCES := source source/ff13b
INCLUDES := include source/ff13b
Expand Down Expand Up @@ -65,7 +65,7 @@ LIBDIRS := $(LIBGBA)

ifneq ($(BUILDDIR), $(CURDIR))
#---------------------------------------------------------------------------------

export OUTPUT := $(CURDIR)/$(TARGET)

export VPATH := $(foreach dir,$(SOURCES),$(CURDIR)/$(dir)) \
Expand Down Expand Up @@ -122,7 +122,7 @@ $(BUILD):
#---------------------------------------------------------------------------------
clean:
@echo clean ...
@rm -fr $(BUILD) $(TARGET).elf $(TARGET).gba
@rm -fr $(BUILD) $(TARGET).elf $(TARGET).gba $(TARGET).bin


#---------------------------------------------------------------------------------
Expand All @@ -132,6 +132,11 @@ else
# main targets
#---------------------------------------------------------------------------------

all : $(OUTPUT).bin

$(OUTPUT).bin : $(OUTPUT).gba
cp $< $@

$(OUTPUT).gba : $(OUTPUT).elf

$(OUTPUT).elf : $(OFILES)
Expand All @@ -158,8 +163,6 @@ soundbank.bin soundbank.h : $(AUDIOFILES)
@echo $(notdir $<)
@$(bin2o)



-include $(DEPSDIR)/*.d

#---------------------------------------------------------------------------------------
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#EZ-FLASH OMEGA Kernel
# EZ-FLASH OMEGA Kernel

### How to build
## How to build

1.We use devkitARM_r47, you can use the current version or newer.
2.Set the following environment variables in system, or modify the value in build.bat, based on your installation path

PATH,DEVKITARM,DEVKITPRO,LIBGBA
1. We use devkitARM_r47. You can use the current version or newer.
2. Set the following environment variables in system, or modify the value in `build.bat` (if you use Windows), based on your installation path.

3.Double click on build.bat under winodws. If it goes well, you will get ezkernel.gba
4.Rename the ezkernel.gba to ezkernel.bin, that is the omega kernel upgrade file
```
PATH,DEVKITARM,DEVKITPRO,LIBGBA
```

3. Double click on `build.bat` under Windows (or run make if you use Linux). If it goes well, you will get `ezkernel.gba` and, `ezkernel.bin`, which is the omega kernel upgrade file.
4 changes: 2 additions & 2 deletions source/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <gba_dma.h>


#include "hzk12.h"
#include "HZK12.h"
#include "asc126.h"


Expand Down Expand Up @@ -226,4 +226,4 @@ void ShowbootProgress(char *str)
u8 str_len = strlen(str);
Clear(60,160-15,120,15,gl_color_cheat_black,1);
DrawHZText12(str,0,(240-str_len*6)/2,160-15,gl_color_text,1);
}
}