Author: hbelusca
Date: Sun Jan 18 19:21:42 2015
New Revision: 66054
URL: http://svn.reactos.org/svn/reactos?rev=66054&view=rev
Log:
[HYBRIDCD]: Require dependency from bootcd too, so that the files that are needed for building the bootcd (the reactos.cab, .inf etc) are also built so that they can be incorporated into the hybridcd.
CORE-9069
Modified:
trunk/reactos/boot/CMakeLists.txt
Modified: trunk/reactos/boot/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/boot/CMakeLists.txt?rev=66…
==============================================================================
--- trunk/reactos/boot/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/boot/CMakeLists.txt [iso-8859-1] Sun Jan 18 19:21:42 2015
@@ -31,7 +31,7 @@
add_custom_target(hybridcd
COMMAND native-cdmake -j -m -b ${CMAKE_CURRENT_BINARY_DIR}/freeldr/bootsect/isoboot.bin @${CMAKE_CURRENT_BINARY_DIR}/hybridcd.lst REACTOS ${REACTOS_BINARY_DIR}/hybridcd.iso
- DEPENDS native-cdmake livecd
+ DEPENDS native-cdmake bootcd livecd
VERBATIM)
add_subdirectory(freeldr)
Author: hbelusca
Date: Sun Jan 18 16:28:18 2015
New Revision: 66052
URL: http://svn.reactos.org/svn/reactos?rev=66052&view=rev
Log:
[REACTOS]
Introduce a way to add arbitrary files into the hybrid cd under a "extras" directory:
- put your files into /trunk/reactos/modules/hybridcd_extras
- do a cmake . && ninja hybridcd
- voilà.
Notice that you need to redo a configure (via "cmake .") in order to update the hybridcd list of files that get included into the hybridcd...
CORE-9069
Modified:
trunk/reactos/modules/CMakeLists.txt
Modified: trunk/reactos/modules/CMakeLists.txt
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/modules/CMakeLists.txt?rev…
==============================================================================
--- trunk/reactos/modules/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/modules/CMakeLists.txt [iso-8859-1] Sun Jan 18 16:28:18 2015
@@ -10,3 +10,12 @@
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/wallpaper/)
add_subdirectory(wallpaper)
endif()
+
+## Extra files for Hybrid CD. You need to put them under hybridcd_extras
+## in the same layout as you want them to be in the CD.
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/)
+ file(GLOB_RECURSE EXTRA_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/ ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/*)
+ foreach(item ${EXTRA_FILES})
+ add_cd_file(FILE ${CMAKE_CURRENT_SOURCE_DIR}/hybridcd_extras/${item} DESTINATION extras NAME_ON_CD ${item} FOR hybridcd)
+ endforeach(item)
+endif()
Author: hbelusca
Date: Sun Jan 18 13:11:35 2015
New Revision: 66050
URL: http://svn.reactos.org/svn/reactos?rev=66050&view=rev
Log:
[CDMAKE]: Remove potential trailing dir-separator characters at the end of the directory, in case e.g. we build up something like: "bootcd\\somefile.ext" in the boot/livecd.lst files (--> I want a directory "bootcd" and a file "somefile.ext", instead of the directory "bootcd\", otherwise the ISO becomes broken. Notice that when the path is "bootcd\somefile.ext the existing code worked ok. That's why I want to strip the remaining backslashes).
Modified:
trunk/reactos/tools/cdmake/dirhash.c
Modified: trunk/reactos/tools/cdmake/dirhash.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/tools/cdmake/dirhash.c?rev…
==============================================================================
--- trunk/reactos/tools/cdmake/dirhash.c [iso-8859-1] (original)
+++ trunk/reactos/tools/cdmake/dirhash.c [iso-8859-1] Sun Jan 18 13:11:35 2015
@@ -107,6 +107,11 @@
}
}
filename[tgt] = 0;
+
+ while (tgt && (filename[--tgt] == DIR_SEPARATOR_CHAR))
+ {
+ filename[tgt] = 0;
+ }
}
struct target_dir_entry *