Skip to content

Commit

Permalink
[programs/modplay] #2 and #3: Fix modplay to be compilable with Rake
Browse files Browse the repository at this point in the history
Also adjusted the call to `console_open` to be compatible with the
changes introduced in #137.
  • Loading branch information
perlun committed Jul 1, 2019
1 parent fa4e2e9 commit 8bcb7d0
Show file tree
Hide file tree
Showing 12 changed files with 377 additions and 530 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ storm/x86/storm

# These are painful but what do we do...
programs/cluido/cluido
programs/modplay/modplay
servers/block/initial_ramdisk/initial_ramdisk
servers/block/initial_ramdisk/ramdisk-auto.h
servers/block/initial_ramdisk/ramdisk.image
Expand Down
2 changes: 1 addition & 1 deletion libraries/log/functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ extern return_type log_print
const char *message);

extern return_type log_init
(log_structure_type *log_structure, char *class, tag_type *tag);
(log_structure_type *log_structure, const char *class, tag_type *tag);
2 changes: 1 addition & 1 deletion libraries/log/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ static return_type log(log_structure_type *log_structure, ipc_log_print_type *ip
}

// Internal function for initialising a connection between the application and the log service.
return_type log_init(log_structure_type *log_structure, char *class, tag_type *tag)
return_type log_init(log_structure_type *log_structure, const char *class, tag_type *tag)
{
mailbox_id_type mailbox_id[10];
unsigned int services = 10;
Expand Down
2 changes: 1 addition & 1 deletion libraries/log/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
typedef struct
{
ipc_structure_type ipc_structure;
char *log_class;
const char *log_class;
} log_structure_type;
8 changes: 8 additions & 0 deletions programs/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ Rake.application.options.rakelib = [pwd + '/../rakelib'] if Rake.application.opt

SUBFOLDERS = %w[
cluido
modplay
].freeze

# Not yet converted to rake:
#
# sampleplay
# serialtest
# streamplay
# tetris

task default: SUBFOLDERS do |t|
t.prerequisites.each do |folder|
sh "cd #{folder} && #{RAKE_COMMAND}"
Expand Down
2 changes: 1 addition & 1 deletion programs/cluido/AUTHORS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AUTHORS ($Id$)
AUTHORS
=======

cluido has been developed by the following people:
Expand Down
21 changes: 21 additions & 0 deletions programs/modplay/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# frozen_string_literal: true

OBJECTS = %w[
modfile.o
modplay.o
].freeze

LIBRARIES = %w[
console
ipc
log
memory
sound
string
system
].freeze

OUTPUT = 'modplay'.freeze
EXTRA_LDFLAGS_PRE = '-Wl,--defsym=PROCESS_VM_BASE=0x46000000'.freeze

load '../programs.rake'
29 changes: 0 additions & 29 deletions programs/modplay/autochaos.rules

This file was deleted.

18 changes: 0 additions & 18 deletions programs/modplay/config.h

This file was deleted.

118 changes: 0 additions & 118 deletions programs/modplay/makefile

This file was deleted.

5 changes: 1 addition & 4 deletions programs/modplay/modfile.asm
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
; $Id$

global modfile, modfile_end
section .data

modfile:
incbin "AXELF.MOD"

incbin "AXELF.MOD"

modfile_end:
Loading

0 comments on commit 8bcb7d0

Please sign in to comment.