Ignore:
Timestamp:
Mar 12, 2016, 12:25:36 AM (9 years ago)
Author:
David Azarewicz
Message:

Documentation and makefile changes for Arca Noae packaging.
No code changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/os2ahci/Makefile

    r174 r176  
    44#
    55# Copyright (c) 2010 Christian Mueller, Markus Thielen.
    6 # Copyright (c) 2013 David Azarewicz
     6# Copyright (c) 2013-2015 David Azarewicz
    77# Parts copied from/inspired by the Linux AHCI driver;
    88# those parts are (c) Linux AHCI/ATA maintainers
     
    3434FIXPACK=
    3535
     36!ifndef %ROOT
     37ROOT=$+$(%cwd)$-
     38!else
     39ROOT=$(%ROOT)
     40!endif
     41
    3642!ifndef %WATCOM # if not defined in the environment
    3743!error WATCOM must be set in the environment.
     
    5864!endif
    5965
     66VERSION=$(BLD_MAJOR).$(BLD_MINOR)
     67ZIPDIR=$(ROOT)\tmp
     68
     69!if "$(FIXPACK)"!=""
     70!ifndef %BLD_DATE
     71!error BLD_DATE must be defined for test versions
     72!endif
     73WPIFILE=$(ROOT)\AHCI-test-$(VERSION)-$(%BLD_DATE)-WPI.zip
     74!else
     75WPIFILE=$(ROOT)\AHCI-$(VERSION)-WPI.zip
     76!endif
     77
    6078AS_INCLUDE = -I=$(DDK)\base\inc
    6179LIB_DIRS = $(DDK)\base\lib\
     
    7088
    7189%INCLUDE=..\include;$(DDK)\base\h;
    72 %PATH=..\..\tools;$(WATCOM)\BINP;$(WATCOM)\BINW;$(DDK)\base\tools;
     90%PATH=$(ROOT)\tools;$(WATCOM)\BINP;$(WATCOM)\BINW;$(DDK)\base\tools;$(%PATH)
    7391AS=wasm
    7492CC=wcc
     
    139157    @%create $^@
    140158    @%append $^@ /* Autogenerated by Makefile */
    141     @%append $^@ $#define VERSION $(BLD_MAJOR)$(BLD_MINOR) /* driver version (2 implied decimals) */
     159    @%append $^@ $#define DMAJOR $(BLD_MAJOR)
     160    @%append $^@ $#define DMINOR $(BLD_MINOR)
    142161    @%append $^@ $#define DVENDOR "$(VENDOR)"
    143162    @AddToFile $^@,$#define BLD_YEAR,DATEYEAR
    144163    @AddToFile $^@,$#define BLD_MONTH,DATEMONTH
    145164    @AddToFile $^@,$#define BLD_DAY,DATEDAY
    146     @AddToFile $^@,$#define BLDLEVEL,BLDLEVEL2,$(VENDOR),$(BLD_MAJOR).$(BLD_MINOR),AHCI Driver (c) 2013 $(VENDOR),$(FIXPACK)
     165    @AddToFile $^@,$#define BLDLEVEL,BLDLEVEL2,$(VENDOR),$(VERSION),AHCI Driver (c) 2015 $(VENDOR),$(FIXPACK)
    147166
    148167.asm.obj: .autodepend
     
    187206    @%erase $^*.ma1
    188207
     208release: os2ahci.add os2ahci.sym .symbolic
     209  @if exist $(WPIFILE) @del $(WPIFILE)
     210  @!rm -rf $(ZIPDIR)
     211
     212  @md $(ZIPDIR)
     213
     214  @md $(ZIPDIR)\pkg1
     215  @copy /b $(ROOT)\src\os2ahci\os2ahci.add $(ZIPDIR)\pkg1 >NUL
     216  @copy /b $(ROOT)\src\os2ahci\os2ahci.sym $(ZIPDIR)\pkg1 >NUL
     217
     218  @md $(ZIPDIR)\pkg2
     219  @copy /b $(ROOT)\Tools\smartahci.exe $(ZIPDIR)\pkg2 >NUL
     220  #@copy $(ROOT)\Tools\testlog.cmd $(ZIPDIR)\pkg2 >NUL
     221
     222  @md $(ZIPDIR)\pkg20
     223  @copy $(ROOT)\src\os2ahci\README $(ZIPDIR)\pkg20 >NUL
     224  @copy $(ROOT)\Tools\LICENSE $(ZIPDIR)\pkg20 >NUL
     225
     226  @md $(ZIPDIR)\wpi
     227  @sed -e "s/\\X\\X\\X/\\0\\$(VERSION:.=\\)/" $(ROOT)\Tools\ahci.wis >$(ZIPDIR)\wpi\ahci.wis
     228  #@copy $(ROOT)\tools\stub.exe $(ZIPDIR)\wpi >NUL
     229
     230  cd $(ZIPDIR)
     231  @zip -r -X $(WPIFILE) *
     232  @cd $(ROOT)
     233  @!rm -rf $(ZIPDIR)
     234
Note: See TracChangeset for help on using the changeset viewer.