Changeset 176 for trunk


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.

Location:
trunk
Files:
12 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
  • trunk/src/os2ahci/README

    r174 r176  
    1 ====================================================================
    2                       eComStation AHCI Driver
    3 ====================================================================
     1AHCI Driver for OS/2 v1.32
    42
    53
     
    75============
    86
    9 OS2AHCI is an AHCI driver for eComStation. It supports both ATA and
     7OS2AHCI is an AHCI driver for OS/2. It supports both ATA and
    108ATAPI devices in a single driver. An ATAPI/CDROM filter driver is
    119only required if you want to read/write CD-DA (audio) format CDs.
    1210
    1311
    14 Copyrights
    15 ==========
    16 
     12Copyrights and License
     13======================
     14
     15(c) Copyright IBM Corporation 1990,2000.
     16All rights reserved.
    1717Copyright (c) 2011 thi.guten Software Development
    18 Copyright (c) 2011-2013 Mensys B.V.
    19 Copyright (c) 2013 David Azarewicz
     18Copyright (c) 2011 Mensys B.V.
     19Copyright (c) 2013-2015 David Azarewicz
    2020
    2121Authors: Christian Mueller, Markus Thielen
    2222
    2323Parts copied from/inspired by the Linux AHCI driver;
    24 those parts are (c) Linux AHCI/ATA maintainers
     24those parts are (c) Linux AHCI/ATA maintainers.
    2525
    2626 This program is free software; you can redistribute it and/or modify
     
    3939 MA  02111-1307  USA
    4040
    41 
    42 Licensing and Source Code
    43 =========================
    44 
    45 The *binary* delivery of OS2AHCI.ADD as obtained from the BetaZone,
    46 or as part of packaged eComStation releases, is licensed to run with
    47 eComStation only.
    48 
    49 The source code can be retrieved from http://svn.ecomstation.nl;
    50 in compliance to the GNU General Public License, the source code
     41The OS2AHCI.ADD Driver Software is a derivative work of the IBM DDK.
     42Binary programs and documentation for the OS2AHCI.ADD Driver
     43Software are licensed to and distributed by Arca Noae, LLC.
     44
     45The source code can be retrieved from http://svn.netlabs.org.
     46In compliance to the GNU General Public License, the source code
    5147can of course be modified/compiled to run on other products as long
    52 as modifications will also be published as outlined in the GNU GPL2.
    53 
    54 Please note that builds other than the official binary delivered as
    55 part of eComStation releases or downloaded from the BetaZone are
    56 not officially supported.
    57 
    58 
    59 Building The Driver
    60 -------------------
    61 
    62 The toolchain required for compilation consists of:
    63 
    64  - The MiniDDK or an updated DDK
    65  - Open Watcom version 1.9 or later
    66 
    67 Define DDK and WATCOM in the environment.
    68 Use "wmake" or "wmake -a" to build the driver. See _build.cmd.
    69 
    70 Installation
    71 ============
    72 
    73 - Run the included update.cmd,
    74   or copy the driver file, OS2AHCI.ADD, to \OS2\BOOT on your boot disk.
    75 
    76 - Add the following line to CONFIG.SYS:
    77   BASEDEV=OS2AHCI.ADD
    78 
    79 
    80 Reporting Problems
    81 ==================
    82 
    83 If you have problems with this driver, please read the Troubleshooting
    84 page at:
    85 
    86   http://svn.ecomstation.nl/ahci/wiki/Troubleshooting
    87 
    88 You can open a ticket at:
    89   http://svn.ecomstation.nl/ahci
     48as modifications will also be published as outlined in the GNU GPL.
     49
     50Please note that builds other than the official binary delivered by
     51the Arca Noae web site are not officially supported.
     52
     53
     54Getting Support and Reporting Problems
     55======================================
     56
     57For more information and to report problems please visit:
     58  https://www.arcanoae.com
     59and click on SUPPORT.
     60
     61Or go directly to the AHCI support wiki at:
     62  https://www.arcanoae.com/wiki/ahci/
    9063
    9164
     
    209182While we believe NCQ will work with the majority of controllers and hard
    210183disks, it's currently turned off by default until we have more feedback
    211 from eComStation users. In order to turn on NCQ, just add the command line
     184from OS/2 users. In order to turn on NCQ, just add the command line
    212185option "/n" to OS2AHCI.ADD.
    213186
     
    385358
    386359
     360Manual Installation
     361===================
     362
     363- Run the included update.cmd,
     364  or copy the driver file, OS2AHCI.ADD, to \OS2\BOOT on your boot disk.
     365
     366- Add the following line to CONFIG.SYS:
     367  BASEDEV=OS2AHCI.ADD
     368
     369
     370Building The Driver
     371-------------------
     372
     373The toolchain required for compilation consists of:
     374
     375 - The MiniDDK or an updated DDK (You must have a DDK license
     376   to build this driver.)
     377 - Open Watcom version 1.9 or later
     378
     379Define DDK and WATCOM in the environment.
     380Use "wmake" or "wmake -a" to build the driver. See _build.cmd.
     381
     382
    387383Change Log
    388384==========
     
    413409  Reworked suspend/resume routines.
    414410  Implemented a temporary hack to make resume work reasonably well.
    415   Suspend/resume is only supported on eCS systems with ACPI.
     411  Suspend/resume is only supported on OS/2 systems with ACPI.
    416412  Suspend/resume is known to not work reliably and cannot be further
    417413    addressed in this driver.
  • trunk/src/os2ahci/_build.cmd

    r158 r176  
    11@echo off
    2 rem set VENDOR=Mensys BV
     2rem set VENDOR=Your Name
    33rem set BLD_MAJOR=1
    44rem set BLD_MINOR=27
    5 rem set WATCOM=i:\Watcom
    6 rem set DDK=i:\ddk
     5rem set WATCOM=e:\Watcom
     6rem set DDK=f:\ddk
    77wmake -a
  • trunk/src/os2ahci/ahci.c

    r174 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Copyright (c) 2013 David Azarewicz
     6 * Copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
  • trunk/src/os2ahci/apm.c

    r165 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Portions copyright (c) 2013 David Azarewicz
     6 * Portions copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
  • trunk/src/os2ahci/ata.c

    r169 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Portions copyright (c) 2013 David Azarewicz
     6 * Portions copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
  • trunk/src/os2ahci/libc.c

    r169 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Portions copyright (c) 2013 David Azarewicz
     6 * Portions copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
  • trunk/src/os2ahci/os2ahci.c

    r174 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Copyright (c) 2013 David Azarewicz
     6 * Copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
     
    120120  "AHCI SATA Driver",              /* driver description */
    121121  DVENDOR,                         /* vendor name */
    122   CMVERSION_MAJOR,                 /* RM interface version major */
    123   CMVERSION_MINOR,                 /* RM interface version minor */
     122  DMAJOR,                          /* RM interface version major */
     123  DMINOR,                          /* RM interface version minor */
    124124  BLD_YEAR, BLD_MONTH, BLD_DAY,    /* date */
    125125  0,                               /* driver flags */
     
    426426
    427427  /* print initialization message */
    428   ciprintf(init_msg, drv_name, VERSION / 100, VERSION % 100);
     428  ciprintf(init_msg, drv_name, DMAJOR, DMINOR);
    429429
    430430  #ifdef TESTVER
  • trunk/src/os2ahci/os2ahci.h

    r171 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Copyright (c) 2013 David Azarewicz
     6 * Copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
  • trunk/src/os2ahci/pci.c

    r174 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Copyright (c) 2013 David Azarewicz
     6 * Copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
  • trunk/src/os2ahci/trace.c

    r171 r176  
    44 * Copyright (c) 2011 thi.guten Software Development
    55 * Copyright (c) 2011 Mensys B.V.
    6  * Copyright (c) 2013 David Azarewicz
     6 * Copyright (c) 2013-2015 David Azarewicz
    77 *
    88 * Authors: Christian Mueller, Markus Thielen
  • trunk/tools/AddToFile.cmd

    r154 r176  
    44 *  AddToFile.cmd FileName,PrefixString,Function[,Parameters...]
    55 *
     6 * Examples:
    67 *  AddToFile.cmd FileName,#define DDATE,DATEL
    78 *    Adds today's date to Filename: #define DDATE 20130312L
     
    6061  end
    6162
    62   when (What="VERSION") then do
    63     Version = '12.345';
    64     say 'Setting '||String||' to '||Version;
    65     rc=lineout(OutFile, String||'='||Version);
     63  when (What="VERSIONMAJOR") then do
     64    parse var ProjVendor Major'.'Minor'.'Revision;
     65    rc=lineout(OutFile, String||' '||FORMAT(Major));
     66    rc=lineout(OutFile);
     67  end
     68
     69  when (What="VERSIONMINOR") then do
     70    parse var ProjVendor Major'.'Minor'.'Revision;
     71    rc=lineout(OutFile, String||' '||FORMAT(Minor));
     72    rc=lineout(OutFile);
     73  end
     74
     75  when (What="VERSIONREVISION") then do
     76    parse var ProjVendor Major'.'Minor'.'Revision;
     77    rc=lineout(OutFile, String||' '||FORMAT(Revision));
    6678    rc=lineout(OutFile);
    6779  end
Note: See TracChangeset for help on using the changeset viewer.