Author: dreimer Date: Sun Dec 28 09:08:40 2008 New Revision: 38426
URL: http://svn.reactos.org/svn/reactos?rev=38426&view=rev Log: Hello, new config.template parameter. Here is your support.
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd trunk/tools/RosBE/RosBE-Windows/plans.txt
Modified: trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Powershel... ============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Powershell/Config.ps1 [iso-8859-1] Sun Dec 28 09:08:40 2008 @@ -111,22 +111,35 @@ $SARCH_CH = Read-Host "(), (xbox)" clear-host
-"Which CPU ReactOS should be optimized for." -"" -"Examples:" -"Intel: i486, i586 / pentium, pentium-mmx, i686 / pentiumpro, pentium2, pentium3" -" pentium3m, pentium-m, pentium4 / pentium4m, prescott, nocona" -" AMD: k6, k6-2 / k6-3, athlon / athlon-tbird, athlon-4 / athlon-xp / athlon-mp" -" k8 / opteron / athlon64 / athlon-fx" -" IDT: winchip-c6, winchip2" -" VIA: c3, c3-2" -" Default is: pentium" +"Generate instructions for this CPU type. Specify one of:" +"" +"Intel: i386, i486, i586, pentium, pentium-mmx, i686, pentiumpro, pentium2" +" pentium3, pentium3m, pentium-m, pentium4, pentium4m, prescott, nocona" +" core2" +"AMD: k6, k6-2, k6-3, athlon, athlon-tbird, athlon-4, athlon-xp, athlon-mp, k8" +" opteron, athlon64, athlon-fx, opteron-sse3, barcelona, geode" +"IDT: winchip-c6, winchip2" +"VIA: c3, c3-2" +"Default is: pentium" "" $OARCH = $xml.group.property | ? { $_.Name -eq "OARCH" } | % { $_.Value} "Right now: $OARCH" $OARCH_CH = Read-Host if ($OARCH_CH -eq $null) { $OARCH_CH = $OARCH +} +clear-host + +"Which CPU ReactOS should be optimized for. Specify one of the above CPUs or" +"generic. When this option is not used, GCC will optimize for the processor" +"specified by OARCH." +"Default is: i686" +"" +$TUNE = $xml.group.property | ? { $_.Name -eq "TUNE" } | % { $_.Value} +"Right now: $TUNE" +$TUNE_CH = Read-Host +if ($TUNE_CH -eq $null) { + $TUNE_CH = $TUNE } clear-host
@@ -227,6 +240,7 @@ # $xml.group.property | ? { $_.Name -eq "SARCH" } | % { $_.Value = "$SARCH_CH"} $xml.group.property | ? { $_.Name -eq "OARCH" } | % { $_.Value = "$OARCH_CH"} +$xml.group.property | ? { $_.Name -eq "TUNE" } | % { $_.Value = "$TUNE_CH"} $xml.group.property | ? { $_.Name -eq "OPTIMIZE" } | % { $_.Value = "$OPTIMIZE_CH"} $xml.group.property | ? { $_.Name -eq "KDBG" } | % { $_.Value = "$KDBG_CH"} $xml.group.property | ? { $_.Name -eq "DBG" } | % { $_.Value = "$DBG_CH"} @@ -245,6 +259,8 @@ # Unload all used Vars. # $YESNO = $null +$TUNE = $null +$TUNE_CH = $null $SARCH_CH = $null $OARCH_CH = $null $OPTIMIZE_CH = $null
Modified: trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Conf... ============================================================================== --- trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/Root/Config.cmd [iso-8859-1] Sun Dec 28 09:08:40 2008 @@ -116,13 +116,13 @@ set /p SARCH_CH="(), (xbox)" cls
-echo Which CPU ReactOS should be optimized for. -echo. -echo Examples: -echo Intel: i486, i586 / pentium, pentium-mmx, i686 / pentiumpro, pentium2, pentium3 -echo pentium3m, pentium-m, pentium4 / pentium4m, prescott, nocona -echo AMD: k6, k6-2 / k6-3, athlon / athlon-tbird, athlon-4 / athlon-xp / athlon-mp -echo k8 / opteron / athlon64 / athlon-fx +echo Generate instructions for this CPU type. Specify one of: +echo. +echo Intel: i386, i486, i586, pentium, pentium-mmx, i686, pentiumpro, pentium2 +echo pentium3, pentium3m, pentium-m, pentium4, pentium4m, prescott, nocona +echo core2 +echo AMD: k6, k6-2, k6-3, athlon, athlon-tbird, athlon-4, athlon-xp, athlon-mp, k8 +echo opteron, athlon64, athlon-fx, opteron-sse3, barcelona, geode echo IDT: winchip-c6, winchip2 echo VIA: c3, c3-2 echo Default is: pentium @@ -133,6 +133,20 @@ set /p OARCH_CH= if "%OARCH_CH%" == "" ( set OARCH_CH=%OARCH% +) +cls + +echo Which CPU ReactOS should be optimized for. Specify one of the above CPUs or +echo generic. When this option is not used, GCC will optimize for the processor +echo specified by OARCH. +echo Default is: i686 +echo. +for /f "usebackq tokens=3" %%i in (`"type "%APPDATA%\RosBE\config.rbuild" | find "TUNE" | find "property name""`) do set TUNE=%%i +set TUNE=%TUNE:~7,-1% +echo Right now: %TUNE% +set /p TUNE_CH= +if "%TUNE_CH%" == "" ( + set TUNE_CH=%TUNE% ) cls
@@ -243,6 +257,7 @@ echo ^<group^>>%TEMP%\config.tmp echo ^<property name="SARCH" value="%SARCH_CH%" /^>>>%TEMP%\config.tmp echo ^<property name="OARCH" value="%OARCH_CH%" /^>>>%TEMP%\config.tmp +echo ^<property name="TUNE" value="%TUNE_CH%" /^>>>%TEMP%\config.tmp echo ^<property name="OPTIMIZE" value="%OPTIMIZE_CH%" /^>>>%TEMP%\config.tmp echo ^<property name="KDBG" value="%KDBG_CH%" /^>>>%TEMP%\config.tmp echo ^<property name="DBG" value="%DBG_CH%" /^>>>%TEMP%\config.tmp @@ -268,6 +283,8 @@ :: Unload all used Vars. :: set YESNO= +set TUNE= +set TUNE_CH= set SARCH_CH= set OARCH_CH= set OPTIMIZE_CH=
Modified: trunk/tools/RosBE/RosBE-Windows/plans.txt URL: http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/plans.txt... ============================================================================== --- trunk/tools/RosBE/RosBE-Windows/plans.txt [iso-8859-1] (original) +++ trunk/tools/RosBE/RosBE-Windows/plans.txt [iso-8859-1] Sun Dec 28 09:08:40 2008 @@ -1,23 +1,2 @@ -updater ideen: -Erweiterte Update Pakete für einzelne Komponenten. - -Die Dateien werden durchnummeriert. %_ROSBE_VERSION%-1.7z, %_ROSBE_VERSION%-2.7z, %_ROSBE_VERSION%-3.7z und die dazugehörigen Changelogs mit der selben Benennung. Gespeichert werden sie in %_ROSBE_BASEDIR%\Updates - -Die klassische Methode, wie schon bei den anderen 7z Dateien wird angewendet, um zu erfahren, ob die Dateien aktualisiert oder erstellt wurden. - -Wenn ja, gebe die heruntergeladene changelog + Größenangabe über type aus und frage nach ob man das Paket laden will. Wenn nein wird wegen der Struktur an sich später nicht mehr nachgefragt, ob das Paket installiert werden soll. Deswegen löschen wir die changelog, um dies zu forcieren. - -Wenn es installiert werden soll, entpacke in . und starte die %_ROSBE_VERSION%-1.cmd, %_ROSBE_VERSION%-2.cmd, %_ROSBE_VERSION%-3.cmd... der aktualisierten Pakete als update skript. - -Die abfrage kann entweder statisch geschehn, also z.b. fest codiert von %_ROSBE_VERSION%-1.7z bis %_ROSBE_VERSION%-9.7z, oder uU variabel über %_ROSBE_VERSION%-%_ROSBE_UPDATE%.7z und dann set /a %_ROSBE_UPDATE% += 1, bis eine Datei nicht vorhanden und deswegen der Updatevorgang fertig ist. Ab aus der schleife und gut ist. - -Die einzelnen Skripts haben folgende Grundelemente: -- Befehle zum Kopieren der Dateien. -- u.U integrierte Abfragen und Entscheidungen möglich. - -Einzelne Commands: -reset - Löscht alle changelogs, also werden alle updates wieder ausgeführt, ob installiert oder nicht. - -nr X - Installiert nur Paket Nummer X, egal ob schon installiert oder nicht und beendet. - -status - Prüft nach neuen Updates und gibt das Resultat als Einzeiler aus. Kopiere die changelogs in einen temp Ordner. Jedes noch nicht vorhandene Update wird mit seiner Nummer an eine variable angehängt und diese am Ende ausgegeben, also z.B. "Update Packs 3,4,5,6 are available" Diese updates werden zu der Zeit noch nicht heruntergeladen und die zur Überprüfung verwendeten changelogs sind deswegen in einem Temp Ordner angesiedelt, um die Aussagekräftigen changelogs nicht zu verändern. Sinnvoll für den Start von RosBE. +- New icons for every arch we support +- More Error catching