Skip to content

Commit

Permalink
Merge pull request #51 from Guillem96/develop
Browse files Browse the repository at this point in the history
Bump to 1.0-alpha
  • Loading branch information
Guillem96 authored Aug 31, 2019
2 parents 1d97767 + 4b324e9 commit af9cb42
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ logo_bmp.h

# Cli files
venv/
scripts/sd-files/
scripts/sd-files/

# Release files
argon-nx.zip
57 changes: 38 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ OUTPUT := output
SOURCEDIR := src
DATA := data
SOURCES := src \
src/ianos \
src/libs/fatfs src/libs/elfload src/libs/compr src/libs/lvgl \
src/libs/lvgl/lv_core src/libs/lvgl/lv_draw src/libs/lvgl/lv_font src/libs/lvgl/lv_hal \
src/libs/lvgl/lv_misc src/libs/lvgl/lv_objx src/libs/lvgl/lv_themes \
src/core \
src/gfx \
src/mem \
src/menu/gui \
src/minerva \
src/panic \
src/power \
src/sec \
src/soc \
src/storage \
src/utils
src/ianos \
src/libs/fatfs src/libs/elfload src/libs/compr src/libs/lvgl \
src/libs/lvgl/lv_core src/libs/lvgl/lv_draw src/libs/lvgl/lv_font src/libs/lvgl/lv_hal \
src/libs/lvgl/lv_misc src/libs/lvgl/lv_objx src/libs/lvgl/lv_themes \
src/core \
src/gfx \
src/mem \
src/menu/gui \
src/minerva \
src/panic \
src/power \
src/sec \
src/soc \
src/storage \
src/utils

INCLUDES := include
VPATH = $(dir $(wildcard ./$(SOURCEDIR)/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/))
VPATH += $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/*/))
VPATH += $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/)) $(dir $(wildcard ./$(SOURCEDIR)/*/*/*/*/))
CFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.c)))
SFILES := $(foreach dir,$(SOURCES),$(notdir $(wildcard $(dir)/*.s)))
BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
Expand All @@ -41,8 +41,8 @@ OBJS = $(addprefix $(BUILD)/$(TARGET)/, $(OFILES_BIN) $(OFILES_SRC))


INCLUDE :=$(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(BUILD)/$(TARGET)
$(foreach dir,$(LIBDIRS),-I$(dir)/include) \
-I$(BUILD)/$(TARGET)

ARCH := -march=armv4t -mtune=arm7tdmi -mthumb -mthumb-interwork
CFLAGS = $(INCLUDE) $(ARCH) -O2 -nostdlib -ffunction-sections -fdata-sections -fomit-frame-pointer -fno-inline -std=gnu11 -Wall
Expand All @@ -51,7 +51,7 @@ LDFLAGS = $(ARCH) -nostartfiles -lgcc -Wl,--nmagic,--gc-sections

.PHONY: all clean

all: directories $(TARGET).bin
all: directories external $(TARGET).bin
@echo $(HFILES_BIN)
@echo -n "Payload size is "
@wc -c < $(OUTPUT)/$(TARGET).bin
Expand All @@ -68,6 +68,25 @@ clean:
@rm -rf $(OUTPUT)
@rm -rf logo_bmp.h

external: directories
$(MAKE) -C modules/minerva

release: directories all
mkdir -p argon/logos
mkdir -p argon/payloads
mkdir -p argon/sys

cp output/argon-nx.bin argon-nx.bin
cp output/libsys_minerva.bso argon/sys/minerva.bso
cp img/example-custom/logos/* argon/logos
cp img/example-custom/backgrounds/default.bmp argon/background.bmp
cp modules/resources.argon argon/sys/resources.argon

zip -r argon-nx.zip argon argon-nx.bin

rm -rf argon
rm argon-nx.bin

$(MODULEDIRS):
$(MAKE) -C $@ $(MAKECMDGOALS)

Expand Down
Binary file added modules/resources.argon
Binary file not shown.
6 changes: 3 additions & 3 deletions src/menu/gui/gui_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ static bool render_single_payload_tab(lv_obj_t *par, argon_ctxt_t * ctxt, char*

static bool render_payloads_entries(lv_obj_t *par_tabview, argon_ctxt_t *argon_ctxt, char* payloads, u32 group)
{
lv_obj_t *btn;
lv_obj_t *label;
lv_img_dsc_t* img;
lv_obj_t *btn = NULL;
lv_obj_t *label = NULL;
lv_img_dsc_t* img = NULL;

u32 i = 4 * group;

Expand Down

0 comments on commit af9cb42

Please sign in to comment.