forked from KolibriOS/kolibrios
Updated makefile to match build.bat (build with e.g. 'make all lang=en')
Made small synt/func corrections in build.bat git-svn-id: svn://kolibrios.org@467 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
17dcdac5d8
commit
69252dd603
@ -6,7 +6,7 @@ $Revision$
|
|||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; Low-level driver for HDD access
|
; Low-level driver for HDD access
|
||||||
; DMA support by Mario79
|
; DMA support by Mario79
|
||||||
|
|
||||||
;**************************************************************************
|
;**************************************************************************
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set languages=en ru ge et
|
set languages=en ru ge et
|
||||||
set drivers=sound sis infinity ati2d
|
set drivers=sound sis infinity ati2d vmode
|
||||||
set targets=all kernel drivers skins clean
|
set targets=all kernel drivers skins clean
|
||||||
|
|
||||||
call :Check_Target %1
|
call :Check_Target %1
|
||||||
@ -10,8 +10,8 @@ call :Target_%target%
|
|||||||
|
|
||||||
if ERRORLEVEL 0 goto Exit_OK
|
if ERRORLEVEL 0 goto Exit_OK
|
||||||
|
|
||||||
echo Probably at runing has been created error
|
echo There was an error executing script.
|
||||||
echo For help send a report...
|
echo For any help, please send a report.
|
||||||
pause
|
pause
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
@ -24,9 +24,8 @@ goto :eof
|
|||||||
for %%a in (%languages%) do if %%a==%res% set lang=%res%
|
for %%a in (%languages%) do if %%a==%res% set lang=%res%
|
||||||
if defined lang goto :eof
|
if defined lang goto :eof
|
||||||
|
|
||||||
echo Language "%res%" is not founded
|
echo Language '%res%' is incorrect
|
||||||
echo Enter valide languege
|
echo Enter valid language [ %languages% ]:
|
||||||
echo [%languages%]
|
|
||||||
|
|
||||||
set /P res=">
|
set /P res=">
|
||||||
goto Check_Lang_loop
|
goto Check_Lang_loop
|
||||||
@ -38,9 +37,8 @@ goto :eof
|
|||||||
for %%a in (%targets%) do if %%a==%res% set target=%res%
|
for %%a in (%targets%) do if %%a==%res% set target=%res%
|
||||||
if defined target goto :eof
|
if defined target goto :eof
|
||||||
|
|
||||||
echo Target "%res%" is not valide
|
echo Target '%res%' is incorrect
|
||||||
echo Enter valide target
|
echo Enter valid target [ %targets% ]:
|
||||||
echo [%targets%]
|
|
||||||
|
|
||||||
set /P res=">
|
set /P res=">
|
||||||
goto Check_Target_loop
|
goto Check_Target_loop
|
||||||
@ -48,7 +46,7 @@ goto :eof
|
|||||||
|
|
||||||
|
|
||||||
:Target_kernel
|
:Target_kernel
|
||||||
echo building kernel with language %lang% ...
|
echo *** building kernel with language '%lang%' ...
|
||||||
|
|
||||||
if not exist bin mkdir bin
|
if not exist bin mkdir bin
|
||||||
echo lang fix %lang% > lang.inc
|
echo lang fix %lang% > lang.inc
|
||||||
@ -59,7 +57,6 @@ goto :eof
|
|||||||
|
|
||||||
|
|
||||||
:Target_all
|
:Target_all
|
||||||
echo building all ...
|
|
||||||
call :Target_kernel
|
call :Target_kernel
|
||||||
call :Target_drivers
|
call :Target_drivers
|
||||||
call :Target_skins
|
call :Target_skins
|
||||||
@ -67,7 +64,7 @@ goto :eof
|
|||||||
|
|
||||||
|
|
||||||
:Target_drivers
|
:Target_drivers
|
||||||
echo building drivers ...
|
echo *** building drivers ...
|
||||||
|
|
||||||
if not exist bin\drivers mkdir bin\drivers
|
if not exist bin\drivers mkdir bin\drivers
|
||||||
cd drivers
|
cd drivers
|
||||||
@ -76,11 +73,12 @@ goto :eof
|
|||||||
if not %errorlevel%==0 goto :Error_FasmFailed
|
if not %errorlevel%==0 goto :Error_FasmFailed
|
||||||
)
|
)
|
||||||
cd ..
|
cd ..
|
||||||
|
move bin\drivers\vmode.obj bin\drivers\vmode.mdr
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
|
|
||||||
:Target_skins
|
:Target_skins
|
||||||
echo building skins ...
|
echo *** building skins ...
|
||||||
|
|
||||||
if not exist bin\skins mkdir bin\skins
|
if not exist bin\skins mkdir bin\skins
|
||||||
cd skin
|
cd skin
|
||||||
@ -91,7 +89,7 @@ goto :eof
|
|||||||
|
|
||||||
|
|
||||||
:Target_clean
|
:Target_clean
|
||||||
echo cleaning ...
|
echo *** cleaning ...
|
||||||
|
|
||||||
del /Q bin\drivers\*.*
|
del /Q bin\drivers\*.*
|
||||||
del /Q bin\skins\*.*
|
del /Q bin\skins\*.*
|
||||||
@ -111,4 +109,4 @@ exit 1
|
|||||||
:Exit_OK
|
:Exit_OK
|
||||||
echo all operations has been done
|
echo all operations has been done
|
||||||
pause
|
pause
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -6,7 +6,7 @@ $Revision$
|
|||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
ntfs_test_bootsec:
|
ntfs_test_bootsec:
|
||||||
; in: ebx->buffer, edx=size of partition
|
; in: ebx->buffer, edx=size of partition
|
||||||
; out: CF set <=> invalid
|
; out: CF set <=> invalid
|
||||||
; 1. Name=='NTFS '
|
; 1. Name=='NTFS '
|
||||||
|
@ -1,16 +1,48 @@
|
|||||||
FASM=fasm
|
FASM=fasm
|
||||||
KSRC=kernel.asm
|
FLAGS=-m 65536
|
||||||
KOUT=kernel.mnt
|
languages=en|ru|ge|et
|
||||||
|
drivers_src=sound sis infinity ati2d vmode
|
||||||
|
skins_src=default
|
||||||
|
|
||||||
en: kernel.asm
|
.PHONY: all kernel drivers skins clean
|
||||||
rm -f lang.inc
|
|
||||||
echo lang fix en > lang.inc
|
all: kernel drivers skins
|
||||||
$(FASM) $(KSRC) $(KOUT)
|
|
||||||
ru: kernel.asm
|
kernel: check_lang
|
||||||
rm -f lang.inc
|
@echo "*** building kernel with language '$(lang)' ..."
|
||||||
echo lang fix ru > lang.inc
|
@mkdir -p bin
|
||||||
$(FASM) $(KSRC) $(KOUT)
|
@echo "lang fix $(lang)" > lang.inc
|
||||||
|
@echo "--- building 'bin/kernel.mnt' ..."
|
||||||
|
@$(FASM) $(FLAGS) kernel.asm bin/kernel.mnt
|
||||||
|
@rm -f lang.inc
|
||||||
|
|
||||||
|
drivers:
|
||||||
|
@echo "*** building 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; \
|
||||||
|
done
|
||||||
|
@mv bin/drivers/vmode.obj bin/drivers/vmode.mdr
|
||||||
|
|
||||||
|
skins:
|
||||||
|
@echo "*** building 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; \
|
||||||
|
done
|
||||||
|
|
||||||
|
check_lang:
|
||||||
|
@case "$(lang)" in \
|
||||||
|
$(languages)) \
|
||||||
|
;; \
|
||||||
|
*) \
|
||||||
|
echo "*** error: language is incorrect or not specified"; \
|
||||||
|
exit 1; \
|
||||||
|
;; \
|
||||||
|
esac
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(KOUT)
|
rm -rf bin
|
||||||
rm -f lang.inc
|
rm -f lang.inc
|
||||||
|
@ -6,7 +6,7 @@ $Revision$
|
|||||||
;; ;;
|
;; ;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
; void __stdcall unpack(void* packed_data, void* unpacked_data);
|
; void __stdcall unpack(void* packed_data, void* unpacked_data);
|
||||||
unpack:
|
unpack:
|
||||||
pushad
|
pushad
|
||||||
mov esi, [esp+32+4]
|
mov esi, [esp+32+4]
|
||||||
|
Loading…
Reference in New Issue
Block a user