From f236be83bcceecb5f04a6b5be98d6ec6d7d61970 Mon Sep 17 00:00:00 2001 From: Serhii Sakhno Date: Mon, 2 May 2016 19:36:37 +0000 Subject: [PATCH] small change, add build shell script git-svn-id: svn://kolibrios.org@6415 a494cfbc-eb01-0410-851d-a64ba20cac60 --- contrib/C_Layer/libguic_kolibri/loadboxlib.asm | 10 +++++----- contrib/C_Layer/libguic_kolibri/make_boardmsg.sh | 11 +++++++++++ 2 files changed, 16 insertions(+), 5 deletions(-) create mode 100755 contrib/C_Layer/libguic_kolibri/make_boardmsg.sh diff --git a/contrib/C_Layer/libguic_kolibri/loadboxlib.asm b/contrib/C_Layer/libguic_kolibri/loadboxlib.asm index de859fee1..2b9bc7389 100644 --- a/contrib/C_Layer/libguic_kolibri/loadboxlib.asm +++ b/contrib/C_Layer/libguic_kolibri/loadboxlib.asm @@ -3,13 +3,13 @@ use32 ; Tell compiler to use 32 bit instructio section '.init' code ; Keep this line before includes or GCC messes up call addresses -include 'proc32.inc' -include 'macros.inc' +include '../../../programs/proc32.inc' +include '../../../programs/macros.inc' purge section,mov,add,sub -include 'box_lib.mac' -include 'txtbut.inc' -include 'dll.inc' +include '../../../programs/develop/libraries/box_lib/trunk/box_lib.mac' +include '../../../programs/system/run/trunk/txtbut.inc' +include '../../../programs/dll.inc' public init_boxlib as '_init_boxlib_asm' public editbox_key as '_editbox_key@4' diff --git a/contrib/C_Layer/libguic_kolibri/make_boardmsg.sh b/contrib/C_Layer/libguic_kolibri/make_boardmsg.sh new file mode 100755 index 000000000..9e9e672de --- /dev/null +++ b/contrib/C_Layer/libguic_kolibri/make_boardmsg.sh @@ -0,0 +1,11 @@ +#Please set up kolibrios sources here : /home//kolibrios + +kos32-gcc -c -I${HOME}/kolibrios/contrib/sdk/sources/newlib/libc/include -g -U_Win32 -U_WIN32 -U__MINGW32__ boardmsg.c -o boardmsg.o + +fasm loadboxlib.asm loadboxlib.obj + +kos32-ld *.o *.obj -T${HOME}/kolibrios/contrib/sdk/sources/newlib/libc/app.lds -nostdlib -static --image-base 0 -lgcc -L/home/autobuild/tools/win32/mingw32/lib /home/autobuild/tools/win32/lib/libdll.a /home/autobuild/tools/win32/lib/libapp.a /home/autobuild/tools/win32/lib/libc.dll.a -static -o boardxmsg -Map=boardxmsg.map + +objcopy -O binary boardxmsg + +echo "If everything went well, boardxmsg should be your binary!" \ No newline at end of file