fixed drivers compilation

git-svn-id: svn://kolibrios.org@1623 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Mihail Semenyako (mike.dld) 2010-09-19 14:40:52 +00:00
parent 22a01e7465
commit ea9de5e3a5
7 changed files with 7 additions and 58 deletions

View File

@ -1,7 +1,7 @@
@echo off
cls
set languages=en ru ge et
set drivers=sound sis infinity ensoniq ps2mouse com_mouse uart ati2d vmode
set drivers=com_mouse emu10k1x ensoniq fm801 infinity sis sound uart viasound vmode vt823(x)
set targets=all kernel drivers skins clean
call :Check_Target %1

View File

@ -27,9 +27,9 @@ kernel_export \
ReservePortArea,\
Boot_Log,\
\
MutexInit,
MutexLock,
MutexUnlock,
MutexInit,\
MutexLock,\
MutexUnlock,\
\
PciApi,\
PciRead32,\

View File

@ -1,51 +0,0 @@
#!/bin/bash
# This script does for linux the same as build.bat for DOS,
# it compiles the KoOS kernel, hopefully ;-)
CLANG=$1;
# set debug=true to print executed bash commands
debug=true
outDir=bin
outFileName=kernel.mnt
outFile=$outDir/$outFileName
usage()
{
echo "Usage: make.sh [en|ru|ge|et]"
exit 1
}
compile()
{
if [ -d "$outDir" ]; then
$debug && echo "rm -f $outFile"
rm -f $outFile
else
$debug && echo "mkdir $outDir"
mkdir $outDir
fi
$debug && echo "fasm -m 65536 kernel.asm $outFile"
fasm -m 65536 kernel.asm $outFile
$debug && echo "rm -f lang.inc"
rm -f lang.inc
$debug && echo "exit 0"
exit 0
}
if [ ! $CLANG ] ; then
usage
fi
for i in "en" "ru" "ge" "et"; do
if [ $i == $CLANG ] ; then
$debug && echo "echo \"lang fix \$i\" > lang.inc"
echo "lang fix $i" > lang.inc
compile
fi
done
usage

View File

@ -1,7 +1,7 @@
FASM=fasm
FLAGS=-m 65536
languages=en|ru|ge|et
drivers_src=sound sis infinity uart ati2d vmode com_mouse
drivers_src=com_mouse emu10k1x ensoniq fm801 infinity sis sound uart viasound vmode vt823\(x\)
skins_src=default
.PHONY: all kernel drivers skins clean
@ -21,7 +21,7 @@ drivers:
@mkdir -p bin/drivers
@cd drivers; for f in $(drivers_src); do \
echo "--- building 'bin/drivers/$${f}.obj' ..."; \
$(FASM) $(FLAGS) $${f}.asm ../bin/drivers/$${f}.obj; \
$(FASM) $(FLAGS) "$${f}.asm" "../bin/drivers/$${f}.obj" || exit $?; \
done
@mv bin/drivers/vmode.obj bin/drivers/vmode.mdr
@ -30,7 +30,7 @@ skins:
@mkdir -p bin/skins
@cd skin; for f in $(skins_src); do \
echo "--- building 'bin/skins/$${f}.skn' ..."; \
$(FASM) $(FLAGS) $${f}.asm ../bin/skins/$${f}.skn; \
$(FASM) $(FLAGS) $${f}.asm ../bin/skins/$${f}.skn || exit $?; \
done
check_lang: