Index: branches/azimutz/trunkAutoResolution/i386/boot2/boot.c =================================================================== --- branches/azimutz/trunkAutoResolution/i386/boot2/boot.c (revision 1463) +++ branches/azimutz/trunkAutoResolution/i386/boot2/boot.c (revision 1464) @@ -256,23 +256,15 @@ //========================================================================== // LoadKernelCache - Try to load Kernel Cache. // return the length of the loaded cache file or -1 on error -long LoadKernelCache(void **binary) { +long LoadKernelCache(const char* cacheFile, void **binary) { char kernelCacheFile[512]; char kernelCachePath[512]; - const char *val; - int len; long flags, time, cachetime, kerneltime, exttime, ret=-1; unsigned long adler32; - // Determine the name of the Kernel Cache - if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) { - if (val[0] == '\\') - { - len--; - val++; - } - strlcpy(kernelCacheFile, val, len + 1); - } + // Use specify kernel cache file if not empty + if (cacheFile[0] != 0) + strlcpy(kernelCacheFile, cacheFile, sizeof(kernelCacheFile)); else { // Lion prelink kernel cache file if (checkOSVersion("10.7")) { @@ -587,10 +579,10 @@ long flags, sleeptime, time; void *binary = (void *)kLoadAddr; - // additional variable for testing alternate kernel image locations on boot helper partitions. char bootFile[sizeof(bootInfo->bootFile)]; char bootFilePath[512]; - + char kernelCacheFile[512]; + // Initialize globals. sysConfigValid = false; gErrors = false; @@ -715,6 +707,18 @@ if (useKernelCache) do { + // Determine the name of the Kernel Cache + if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) { + if (val[0] == '\\') + { + len--; + val++; + } + strlcpy(kernelCacheFile, val, len + 1); + } else { + kernelCacheFile[0] = 0; // Use default kernel cache file + } + // If boot from boot helper partitions and OS is Lion use prelink kernel. // We need to find a solution to load extra mkext with a prelink kernel. if (gBootVolume->flags & kBVFlagBooter && checkOSVersion("10.7")) { @@ -728,8 +732,8 @@ useKernelCache = false; break; } - if (gOverrideKernel) { - verbose("Using a non default kernel (%s), KernelCache will not be used\n", + if (gOverrideKernel && kernelCacheFile[0] == 0) { + verbose("Using a non default kernel (%s) without specifying 'Kernel Cache' path, KernelCache will not be used\n", bootInfo->bootFile); useKernelCache = false; break; @@ -747,7 +751,7 @@ do { if (useKernelCache) { - ret = LoadKernelCache(&binary); + ret = LoadKernelCache(kernelCacheFile, &binary); if (ret >= 0) break; } Index: branches/azimutz/trunkAutoResolution/package/Resources/de.lproj/Localizable.strings =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: branches/azimutz/trunkAutoResolution/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf =================================================================== --- branches/azimutz/trunkAutoResolution/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf (revision 1463) +++ branches/azimutz/trunkAutoResolution/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf (revision 1464) @@ -26,10 +26,11 @@ \b0\fs30 \cf0 \ \pard\ri0\ql\qnatural -\b\fs26 \cf0 Packages credits to : %PKGDEV% +\b\fs26 \cf0 Pkg : %PKGDEV% \b0\fs30 \ \pard\tx360\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \cf0 \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural -\fs26 \cf0 Copyright \'a9 2011} +\fs26 \cf0 Copyright \'a9 2011 +\b \cf3 German translation: !Xabbu} Index: branches/azimutz/trunkAutoResolution/package/buildpkg.sh =================================================================== --- branches/azimutz/trunkAutoResolution/package/buildpkg.sh (revision 1463) +++ branches/azimutz/trunkAutoResolution/package/buildpkg.sh (revision 1464) @@ -293,7 +293,7 @@ do theme=$( echo ${themes[$i]##*/} | awk 'BEGIN{OFS=FS=""}{$1=toupper($1);print}' ) mkdir -p "${1}/${themes[$i]##*/}/Root/" - rsync -r --exclude=.svn "${themes[$i]}" "${1}/${themes[$i]##*/}/Root/${theme}" + rsync -r --exclude=.svn "${themes[$i]}/" "${1}/${themes[$i]##*/}/Root/${theme}" # #### Comment out thx meklort # ditto --noextattr --noqtn "${themes[$i]}" "${1}/${themes[$i]##*/}/Root/${theme}" # #### Property changes on: branches/azimutz/trunkAutoResolution ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r1458-1463 Index: branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/boot.c =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/boot.c (revision 1463) +++ branches/azimutz/trunkGraphicsEnablerModules/i386/boot2/boot.c (revision 1464) @@ -225,23 +225,15 @@ //========================================================================== // LoadKernelCache - Try to load Kernel Cache. // return the length of the loaded cache file or -1 on error -long LoadKernelCache(void **binary) { +long LoadKernelCache(const char* cacheFile, void **binary) { char kernelCacheFile[512]; char kernelCachePath[512]; - const char *val; - int len; long flags, time, cachetime, kerneltime, exttime, ret=-1; unsigned long adler32; - // Determine the name of the Kernel Cache - if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) { - if (val[0] == '\\') - { - len--; - val++; - } - strlcpy(kernelCacheFile, val, len + 1); - } + // Use specify kernel cache file if not empty + if (cacheFile[0] != 0) + strlcpy(kernelCacheFile, cacheFile, sizeof(kernelCacheFile)); else { // Lion prelink kernel cache file if (checkOSVersion("10.7")) { @@ -498,10 +490,10 @@ long flags, sleeptime, time; void *binary = (void *)kLoadAddr; - // additional variable for testing alternate kernel image locations on boot helper partitions. char bootFile[sizeof(bootInfo->bootFile)]; char bootFilePath[512]; - + char kernelCacheFile[512]; + // Initialize globals. sysConfigValid = false; gErrors = false; @@ -623,6 +615,18 @@ if (useKernelCache) do { + // Determine the name of the Kernel Cache + if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) { + if (val[0] == '\\') + { + len--; + val++; + } + strlcpy(kernelCacheFile, val, len + 1); + } else { + kernelCacheFile[0] = 0; // Use default kernel cache file + } + // If boot from boot helper partitions and OS is Lion use prelink kernel. // We need to find a solution to load extra mkext with a prelink kernel. if (gBootVolume->flags & kBVFlagBooter && checkOSVersion("10.7")) { @@ -636,8 +640,8 @@ useKernelCache = false; break; } - if (gOverrideKernel) { - verbose("Using a non default kernel (%s), KernelCache will not be used\n", + if (gOverrideKernel && kernelCacheFile[0] == 0) { + verbose("Using a non default kernel (%s) without specifying 'Kernel Cache' path, KernelCache will not be used\n", bootInfo->bootFile); useKernelCache = false; break; @@ -655,7 +659,7 @@ do { if (useKernelCache) { - ret = LoadKernelCache(&binary); + ret = LoadKernelCache(kernelCacheFile, &binary); if (ret >= 0) break; } Index: branches/azimutz/trunkGraphicsEnablerModules/package/Resources/de.lproj/Localizable.strings =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: branches/azimutz/trunkGraphicsEnablerModules/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf (revision 1463) +++ branches/azimutz/trunkGraphicsEnablerModules/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf (revision 1464) @@ -26,10 +26,11 @@ \b0\fs30 \cf0 \ \pard\ri0\ql\qnatural -\b\fs26 \cf0 Packages credits to : %PKGDEV% +\b\fs26 \cf0 Pkg : %PKGDEV% \b0\fs30 \ \pard\tx360\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \cf0 \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural -\fs26 \cf0 Copyright \'a9 2011} +\fs26 \cf0 Copyright \'a9 2011 +\b \cf3 German translation: !Xabbu} Index: branches/azimutz/trunkGraphicsEnablerModules/package/buildpkg.sh =================================================================== --- branches/azimutz/trunkGraphicsEnablerModules/package/buildpkg.sh (revision 1463) +++ branches/azimutz/trunkGraphicsEnablerModules/package/buildpkg.sh (revision 1464) @@ -293,7 +293,7 @@ do theme=$( echo ${themes[$i]##*/} | awk 'BEGIN{OFS=FS=""}{$1=toupper($1);print}' ) mkdir -p "${1}/${themes[$i]##*/}/Root/" - rsync -r --exclude=.svn "${themes[$i]}" "${1}/${themes[$i]##*/}/Root/${theme}" + rsync -r --exclude=.svn "${themes[$i]}/" "${1}/${themes[$i]##*/}/Root/${theme}" # #### Comment out thx meklort # ditto --noextattr --noqtn "${themes[$i]}" "${1}/${themes[$i]##*/}/Root/${theme}" # #### Property changes on: branches/azimutz/trunkGraphicsEnablerModules ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r1458-1463 Index: branches/azimutz/Package/i386/boot2/boot.c =================================================================== --- branches/azimutz/Package/i386/boot2/boot.c (revision 1463) +++ branches/azimutz/Package/i386/boot2/boot.c (revision 1464) @@ -225,23 +225,15 @@ //========================================================================== // LoadKernelCache - Try to load Kernel Cache. // return the length of the loaded cache file or -1 on error -long LoadKernelCache(void **binary) { +long LoadKernelCache(const char* cacheFile, void **binary) { char kernelCacheFile[512]; char kernelCachePath[512]; - const char *val; - int len; long flags, time, cachetime, kerneltime, exttime, ret=-1; unsigned long adler32; - // Determine the name of the Kernel Cache - if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) { - if (val[0] == '\\') - { - len--; - val++; - } - strlcpy(kernelCacheFile, val, len + 1); - } + // Use specify kernel cache file if not empty + if (cacheFile[0] != 0) + strlcpy(kernelCacheFile, cacheFile, sizeof(kernelCacheFile)); else { // Lion prelink kernel cache file if (checkOSVersion("10.7")) { @@ -498,10 +490,10 @@ long flags, sleeptime, time; void *binary = (void *)kLoadAddr; - // additional variable for testing alternate kernel image locations on boot helper partitions. char bootFile[sizeof(bootInfo->bootFile)]; char bootFilePath[512]; - + char kernelCacheFile[512]; + // Initialize globals. sysConfigValid = false; gErrors = false; @@ -623,6 +615,18 @@ if (useKernelCache) do { + // Determine the name of the Kernel Cache + if (getValueForKey(kKernelCacheKey, &val, &len, &bootInfo->bootConfig)) { + if (val[0] == '\\') + { + len--; + val++; + } + strlcpy(kernelCacheFile, val, len + 1); + } else { + kernelCacheFile[0] = 0; // Use default kernel cache file + } + // If boot from boot helper partitions and OS is Lion use prelink kernel. // We need to find a solution to load extra mkext with a prelink kernel. if (gBootVolume->flags & kBVFlagBooter && checkOSVersion("10.7")) { @@ -636,8 +640,8 @@ useKernelCache = false; break; } - if (gOverrideKernel) { - verbose("Using a non default kernel (%s), KernelCache will not be used\n", + if (gOverrideKernel && kernelCacheFile[0] == 0) { + verbose("Using a non default kernel (%s) without specifying 'Kernel Cache' path, KernelCache will not be used\n", bootInfo->bootFile); useKernelCache = false; break; @@ -655,7 +659,7 @@ do { if (useKernelCache) { - ret = LoadKernelCache(&binary); + ret = LoadKernelCache(kernelCacheFile, &binary); if (ret >= 0) break; } Index: branches/azimutz/Package/package/Resources/de.lproj/Localizable.strings =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Index: branches/azimutz/Package/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf =================================================================== --- branches/azimutz/Package/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf (revision 1463) +++ branches/azimutz/Package/package/Resources/de.lproj/Welcome.rtfd/TXT.rtf (revision 1464) @@ -26,10 +26,11 @@ \b0\fs30 \cf0 \ \pard\ri0\ql\qnatural -\b\fs26 \cf0 Packages credits to : %PKGDEV% +\b\fs26 \cf0 Pkg : %PKGDEV% \b0\fs30 \ \pard\tx360\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural \cf0 \ \pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural -\fs26 \cf0 Copyright \'a9 2011} +\fs26 \cf0 Copyright \'a9 2011 +\b \cf3 German translation: !Xabbu} Property changes on: branches/azimutz/Package ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r1450-1463