Revamp all the Makefiles (thanks @fincs @WinterMute)

... dependencies are now properly handled (e.g. header changes, etc.)
This commit is contained in:
TuxSH
2018-05-19 00:54:38 +02:00
parent 7bfdf63a71
commit b4eeddd7e1
23 changed files with 773 additions and 304 deletions

View File

@@ -14,6 +14,13 @@
#include "exocfg.h"
#include "display/video_fb.h"
#include "lib/ini.h"
#define u8 uint8_t
#define u32 uint32_t
#include "exosphere_bin.h"
#undef u8
#undef u32
#include "hwinit/cluster.h"
static int exosphere_ini_handler(void *user, const char *section, const char *name, const char *value) {
@@ -237,8 +244,6 @@ void nxboot_main(void) {
generic_panic();
}
} else {
extern const uint8_t exosphere_bin[];
extern const uint32_t exosphere_bin_size;
memcpy(exosphere_memaddr, exosphere_bin, exosphere_bin_size);
}

View File

@@ -7,6 +7,12 @@
#include "kip.h"
#include "se.h"
#define u8 uint8_t
#define u32 uint32_t
#include "thermosphere_bin.h"
#undef u8
#undef u32
static void package2_decrypt(package2_header_t *package2);
static size_t package2_get_thermosphere(void **thermosphere);
static void package2_patch_kernel(void *kernel, size_t kernel_size);

View File

@@ -7,6 +7,16 @@
#include "stratosphere.h"
#include "fs_utils.h"
#define u8 uint8_t
#define u32 uint32_t
#include "loader_kip.h"
#include "pm_kip.h"
#include "sm_kip.h"
#include "boot_100_kip.h"
#include "boot_200_kip.h"
#undef u8
#undef u32
static ini1_header_t *g_stratosphere_ini1 = NULL;
extern const uint8_t boot_100_kip[], boot_200_kip[];