1. 07 Jul, 2021 1 commit
    • Ben Avison's avatar
      Modernise build structure · ceca9db9
      Ben Avison authored
      * Cross-compilable
      * Consolidate and complete `.gitignore`
      * Enable GitLab CI, and address warnings generated
      ceca9db9
  2. 23 Jan, 2021 1 commit
  3. 24 Jul, 2018 1 commit
    • Robert Sprowson's avatar
      Correct suspicious sizeof · 85873d4b
      Robert Sprowson authored
      Add the sizeof the ResourceFS terminator, rather than relying on sizeof(0) being 4.
      Found by cppcheck static analysis.
      Tagged as BootCmds-1_49-1 since binary unchanged.
      85873d4b
  4. 02 Aug, 2015 1 commit
    • Robert Sprowson's avatar
      Build fix · 5b285072
      Robert Sprowson authored
      Don't set RES_OBJ to an empty string.
      Make use of INSTRES_FILES to simplify the resources phase.
      
      Version 1.49. Tagged as 'BootCmds-1_49'
      5b285072
  5. 06 Apr, 2014 2 commits
    • Robert Sprowson's avatar
      Missing message token fix · 4ddbbb29
      Robert Sprowson authored
      When built with CMDHELP=None the AppSizeSyntax/AppSlotSyntax/AddToRMASyntax/IfThereSyntax tokens are not present in the messages file.
      In fact, for the first 3 we don't need to manually check for trailing parameters since the CMHG definition has max-args of 1, so the OS does it for us.
      For IfThereSyntax we instead manually cause an IfThere syntax error in order to get the error message (with CMDHELP=None this will come from the english text, and for internationalised versions this will be looked up for us by the kernel).
      Set min-args to 1 for IfThere, this saves having to construct the *If command which we know will fail (for a start there must be no 'then'!).
      
      Tested RAM loaded, no longer reports missing message token.
      4ddbbb29
    • Robert Sprowson's avatar
      Missing message token fix · c6f2678a
      Robert Sprowson authored
      When built with CMDHELP=None the AppSizeSyntax/AppSlotSyntax/AddToRMASyntax/IfThereSyntax tokens are not present in the messages file.
      In fact, for the first 3 we don't need to manually check for trailing parameters since the CMHG definition has max-args of 1, so the OS does it for us.
      For IfThereSyntax we instead manually cause an IfThere syntax error in order to get the error message (with CMDHELP=None this will come from the english text, and for internationalised versions this will be looked up for us by the kernel).
      Set min-args to 1 for IfThere, this saves having to construct the *If command which we know will fail (for a start there must be no 'then'!).
      
      Tested RAM loaded, no longer reports missing message token.
      
      Version 1.48. Tagged as 'BootCmds-1_48'
      c6f2678a
  6. 09 May, 2013 1 commit
    • Robert Sprowson's avatar
      Sync of CmdHelp · 60ab805e
      Robert Sprowson authored
      The non internationalised messages were out of sync with the messages, specifically the deprecated -stb switch. Updated from CmdHelp.
      
      Version 1.47. Tagged as 'BootCmds-1_47'
      60ab805e
  7. 10 Oct, 2012 1 commit
    • Steve Revill's avatar
      Change to the BootFX progress bar SWI call. · 5f1b02cc
      Steve Revill authored
      Version 0.06 of BootFX has a non-backwards-compatible change to the
      BarUpdate SWI call. As BootCommands should be the only user right
      now, that's not too bad.
      
      Admin:
      
      This version of BootCommands will not work correctly with versions
      of BootFX older than 0.06 (the progress bar will not move).
      
      Version 1.46. Tagged as 'BootCmds-1_46'
      5f1b02cc
  8. 30 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Make *SaveCMOS cope better if the boot sequence hasn't been run · 0bc0ca07
      Jeffrey Lee authored
      Detail:
        c/main - If running on RISC OS 5, *SaveCMOS will now guess at the correct Boot$OSVersion value if it hasn't been set by the boot sequence.
        This makes things easier for OMAP machines which are reliant on SDCMOS; unless the version number is present in the CMOS file the HAL won't pick up the CMOS values on the next boot, so it's important for the OS to be able to determine this value for itself to prevent people getting stuck in situations where boot isn't running and they can't get fixed CMOS settings saved due to lack of Boot$OSVersion
      Admin:
        Tested on Pandora
      
      
      Version 1.45. Tagged as 'BootCmds-1_45'
      0bc0ca07
  9. 02 Sep, 2012 1 commit
    • Robert Sprowson's avatar
      Add support for progress indication and 'must continue' switch · ced5254c
      Robert Sprowson authored
      * The switch '-stb' has existed for some time but is a bit obtuse, renamed to '-continue' (though -stb is still accepted as an alias).
      * Added support for BootFX module, via switch '-progress start,range' which will scale the work done and work yet to do into a percentage and pass it to the BootFX module (intended to track boot progress).
      * Trimmed out old switched out repeat command code that ran in SVC mode.
      * Eliminate last trace of Support011 library, was only using the control terminated version of strlen() which is in ConfigLib (now linked against).
      * Const qualifiers added to command handlers.
      
      Version 1.44. Tagged as 'BootCmds-1_44'
      ced5254c
  10. 21 Jul, 2012 1 commit
    • Robert Sprowson's avatar
      Makefile adapted to accept CMDHELP=None · b029562b
      Robert Sprowson authored
      * Recreated from fragments
      * No longer creates two resource areas (one for Repeat, one for messages) since RESGEN can put many files into one area
      * No longer does a ResourceFS register in the ROM case - the resources phase now exports both Repeat and messages directly into the messages module
      * Corrected error number for BufOFlo (was using the token number!)
      * Used newly allocated error base for all other errors
      * Internationalised "Can't claim memory" in Repeat
      * Fixed a couple of compiler warnings
      
      Version 1.43. Tagged as 'BootCmds-1_43'
      b029562b
  11. 14 Jan, 2012 1 commit
  12. 09 Jan, 2012 1 commit
    • Steve Revill's avatar
      Yet another attempt at getting read-only booting working. · 1b92201b
      Steve Revill authored
      Spotted a missing part to the tweak which I made previously to this
      module (canonicalising the directory name). Adding this means the
      read-only boot sequence (in ResourceFS) works correctly - apart from
      a final tweak in !Scrap, to be checked-in shortly.
      
      Version 1.41. Tagged as 'BootCmds-1_41'
      1b92201b
  13. 12 Dec, 2011 2 commits
    • Steve Revill's avatar
      Yes, yes - I should've tested BootCmds first... · 16db2efb
      Steve Revill authored
      I didn't break it, but I didn't exactly fix it either. This one works.
      16db2efb
    • Steve Revill's avatar
      Fix to the AddApp command. · 680d9175
      Steve Revill authored
      If you attempt to AddApp an app which is already within Resources:$.Apps (but not
      a subdirectory therein) it would create a stub with circular references, leading
      to stack exhaustion. Fixed to take no action in this case (i.e. not to create the
      stub).
      
      Untested. Will be required for booting from ResourceFS.
      
      Version 1.40. Tagged as 'BootCmds-1_40'
      680d9175
  14. 19 Apr, 2010 1 commit
    • Ben Avison's avatar
      A couple of bugfixes · dfbcd9d7
      Ben Avison authored
      Detail:
        * *Repeat allows for command lines up to 1024 bytes (RISC OS 4+ standard)
          rather than 256 bytes
       * Fixed crash on *Repeat -sort
       * Uses OS_HeapSort32 rather than OS_HeapSort
      Admin:
        Provided by Thomas Milius
      
      Version 1.39. Tagged as 'BootCmds-1_39'
      dfbcd9d7
  15. 11 Oct, 2008 1 commit
    • Ben Avison's avatar
      Merged in changes from Castle · 073f429b
      Ben Avison authored
      Detail:
        Extended repeat dir enumeration buffer
        Field failures seen when too many entries in a directory
        It was set to a static buffer for 128 short filename entries.
        Now it'll retry with double the buffer up to 8 times before giving
        buffer overflow
      Admin:
        Not tested. Version incremented by 3 to match Castle's version.
      
      Version 1.38. Tagged as 'BootCmds-1_38'
      073f429b
  16. 15 Sep, 2005 1 commit
    • Steve Revill's avatar
      Corrected *Repeat help message · f04164bf
      Steve Revill authored
      Detail:
        The *help message for *Repeat was indicating that 'tail' was a terminal
        symbol in the repeat command's syntax. It is actually a non-terminal
        so should be <tail>.
      Admin:
        No code change.
      
      Version 1.35. Tagged as 'BootCmds-1_35'
      f04164bf
  17. 06 Sep, 2004 1 commit
  18. 03 Sep, 2004 1 commit
    • Steve Revill's avatar
      Repeat command made more robust in handling errors in the pre-desktop execution mode. · a32d9dc3
      Steve Revill authored
      Detail:
        If -stb is supplied to the repeat command (and -tasks is not), it will
        put the first error it encounters into the system variable X$Error (if
        not already set) and then continue execution as normal.
      Admin:
        I also updated the CmdHelp file to reflect not only this change, but
        also the -sort switch which was added quite some time ago and to make
        the X command help a little more helpful.
      
      Version 1.33. Tagged as 'BootCmds-1_33'
      a32d9dc3
  19. 11 Jul, 2004 1 commit
  20. 04 Jun, 2003 1 commit
  21. 17 Mar, 2003 1 commit
  22. 26 Nov, 2002 1 commit
  23. 08 Nov, 2002 1 commit
  24. 20 Oct, 2002 2 commits
  25. 05 Aug, 2002 1 commit
    • Ben Avison's avatar
      Has a chance of building with cc 5.45. · b4bc682f
      Ben Avison authored
      Detail:
        Was defining structs for the block returned from OS_ReadArgs, but used
        bool types for switch arguments. Now that they are 1 byte wide, this was
        causing problems. Now replaced with osbool types, which should remain
        1 word wide.
      Admin:
        Not tested.
      
      Version 1.27. Tagged as 'BootCmds-1_27'
      b4bc682f
  26. 16 Jul, 2002 1 commit
  27. 19 Mar, 2002 1 commit
    • Steve Revill's avatar
      * Added 'X' as a CLI command. · 43a20a57
      Steve Revill authored
      Detail:
        The 'X' command has existed for a long while as a transient utility in the
        !Internet application. I have impemented it as a CLI command in this module
        to reduce FS access required to use it. Note: this version of X implements
        the extended functionality of placing any suppressed error message into the
        system variable "X$Error" (if not already set).
      Admin:
        Tested on RiscPC.
      
      Version 1.25. Tagged as 'BootCmds-1_25'
      43a20a57
  28. 05 Nov, 2001 1 commit
    • Steve Revill's avatar
      Added install ram phase. · ee4e92af
      Steve Revill authored
        Added stripdepnd to the !MkClean file.
      Detail:
        You could not install a ram version of this module. Fixed.
      Admin:
        Required for Baseline builds.
      
      Version 1.24. Tagged as 'BootCmds-1_24'
      ee4e92af
  29. 20 Sep, 2001 1 commit
    • Steve Revill's avatar
      Slight improvement to the *AddApp command. · faf4c309
      Steve Revill authored
      Detail:
        The !Boot and !Run files which are created in ResourceFS contain a single
        line which will run the counterpart file in the added application. This
        line should really have %*0 on the end so that any parameters passed to
        the application's !Boot and more importantly to the !Run are passed on,
        rather than being lost.
      Admin:
        Tested on RO4 RiscPC.
      
      Version 1.23. Tagged as 'BootCmds-1_23'
      faf4c309
  30. 20 Jul, 2001 1 commit
    • Steve Revill's avatar
      Changes the Repeat sources to add -sort parameter. · d4d7be02
      Steve Revill authored
      Detail:
        -sort will ensure that the objects iterated over are sorted into
        ascending ASCII order before the iteration. This is important for
        FS like NFS which does not return things in order.
      Admin:
        Been used for ages in STB Baselines without problems.
      
      Version 1.22. Tagged as 'BootCmds-1_22'
      d4d7be02
  31. 22 Jun, 2001 1 commit
    • Stewart Brodie's avatar
      The output value for SWI XOS_ReadUnsigned should be treated as unsigned. · 0a02431a
      Stewart Brodie authored
      Detail:
        Fails to build with OSLib 6.21 since the prototype for this function
          has been fixed.  I've changed the type of the value to unsigned
          but always cast its address to void* for this API call to preserve
          compatibility with older versions of OSLib (which are broken)
      Admin:
        Built on desktop machine.
      
      
      Version 1.21. Tagged as 'BootCmds-1_21'
      0a02431a
  32. 07 Dec, 2000 1 commit
    • Stewart Brodie's avatar
      Fixed the layout of resources in this component. · a41e5a42
      Stewart Brodie authored
      Detail:
        The Messages and CmdHelp files are now located via LocalRes:
      Admin:
        Change makes this module more standard.
        Module no longer requires special changes to support BBE.
        Tested briefly.
      
      Version 1.20. Tagged as 'BootCmds-1_20'
      a41e5a42
  33. 30 Nov, 1999 1 commit
    • Stewart Brodie's avatar
      Moved to srccommit. · b4dc6e7f
      Stewart Brodie authored
        Fixed directory enumerators.
        Removed obsolete assembler sources.
      Detail:
        s/main was the output of "cc -S c/main" :-/
      Admin:
        Built.
      
      Version 1.19. Tagged as 'BootCmds-1_19'
      b4dc6e7f
  34. 22 Oct, 1998 1 commit
  35. 04 Sep, 1998 1 commit
  36. 03 Feb, 1997 1 commit
  37. 30 Jan, 1997 1 commit