cake
/
p7utils
Archived
1
0
Fork 0

Corrected submodule adress, update.exe -> cake.exe

This commit is contained in:
Thomas Touhey 2017-01-16 18:34:18 +01:00
parent 7c147943a5
commit 1c42ed1444
4 changed files with 13 additions and 9 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "src/p7os/cake.exe"]
path = src/p7os/cake.exe
url = https://github.com/cakeisalie5/cake.exe.git

1
src/p7os/cake.exe Submodule

@ -0,0 +1 @@
Subproject commit 0afc6c675dfc44411ef9571b3af7571dfbc6f503

View File

@ -78,17 +78,17 @@ int main(int ac, char **av)
}
/* check according to menu */
FILE *update_exe;
FILE *cake_exe;
switch (args.menu) {
/* prepare menu */
case mn_prepare:;
/* open memory stream for the update.exe */
size_t uexe_size = (size_t)&update_exe_end - (size_t)&update_exe_str;
update_exe = fmemopen(update_exe_str, uexe_size, "r");
if (!update_exe) break;
size_t uexe_size = (size_t)&cake_exe_end - (size_t)&cake_exe_str;
cake_exe = fmemopen(cake_exe_str, uexe_size, "r");
if (!cake_exe) break;
/* send the update.exe */
if ((err = p7_sendexe_stream(handle, update_exe, (p7uint_t)uexe_size,
if ((err = p7_sendexe_stream(handle, cake_exe, (p7uint_t)uexe_size,
0x88030000, 0x88030000)))
fprintf(stderr, "An error has occurred: %s\n", p7_strerror(err));
break;

View File

@ -18,10 +18,10 @@
/* ************************************************************************** */
/* Embedded update.exe */
/* ************************************************************************** */
#define update_exe_str (_binary_update_exe_bin_start)
#define update_exe_end (_binary_update_exe_bin_end)
extern char _binary_update_exe_bin_start[];
extern char _binary_update_exe_bin_end[];
#define cake_exe_str (_binary_cake_exe_bin_start)
#define cake_exe_end (_binary_cake_exe_bin_end)
extern char _binary_cake_exe_bin_start[];
extern char _binary_cake_exe_bin_end[];
/* ************************************************************************** */
/* CLI options */