Patch extracted from a set of patches to cross-compile ffmeg and dependencies for mingw-w64. https://github.com/Warblefly/MultimediaTools-mingw-w64/commit/01e30a17637b67afd65c1e24302f8daf94b19b32#diff-503bd595ad2a49840cc56acdb3432487a20a0acb7981ce83be51fe311216de8f diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 99a69fd..e5ba8a7 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -35,8 +35,6 @@ endif(VA_LIST_IS_ARRAY) INCLUDE(TestBigEndian) TEST_BIG_ENDIAN(WORDS_BIGENDIAN) -TRY_RUN(BITFIELDS_HTOL TEST_DUMMY ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/test_BITFIELDS_HTOL.c) - INCLUDE(CheckIncludeFiles) #SET(CMAKE_REQUIRED_INCLUDES "/usr/include;/usr/local/include") diff --git a/include/xconfig.h.in b/include/xconfig.h.in index c130600..476c00b 100644 --- a/include/xconfig.h.in +++ b/include/xconfig.h.in @@ -233,7 +233,11 @@ /* If using network byte order */ #cmakedefine WORDS_BIGENDIAN /* If high bits come first in structures */ -#cmakedefine BITFIELDS_HTOL +#ifdef WORDS_BIGENDIAN +#define BITFIELDS_HTOL +#else +#define BITFIELDS_LTOH +#endif #define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */ #define HAVE_C_BITFIELDS /* Flag that BITFIELDS_HTOL test was done */ dd141b713b9bcecad09a1ec93a5bb651d340eba'>treecommitdiff
path: root/gnu/bootloader/grub.scm
AgeCommit message (Expand)Author
2024-11-11bootloader: grub: Remove hardcoded partition number for the Hurd....This supports using another than the default DISK0 PART1 and using LABEL or UUID as root file-system specifier. It still defaults to DISK0 PART1 if the file-system cannot be found, i.e., lives only at the build side: A virtual machine/childhurd build. * gnu/build/file-systems.scm (%hurd-device-spec-regexp, %device-spec-regexp): New variables. (device-name->hurd-device-name, hurd-device-name->device-name, device-spec->device, device-spec->device-name): Use them in new procedures. * gnu/bootloader/grub.scm (make-grub-configuration): Use them to remove hardcoded partition number (root-index 1). Change-Id: I49fa93dacc09883dfb4d695402c5eac2e0e17286 Janneke Nieuwenhuizen
2024-01-14bootloader: grub: Add support for loading an additional initrd....In order to be able to provide decryption keys for the LUKS device, they need to be available in the initial ram disk. However they cannot be stored inside the usual initrd, since it is stored in the store and being a world-readable (as files in the store are) is not a desired property for a initrd containing decryption keys. This commit adds an option to load additional initrd during the boot, one that is not stored inside the store and therefore can contain secrets. Since only grub supports encrypted /boot, only grub is modified to use the extra-initrd. There is no use case for the other bootloaders. * doc/guix.texi (Bootloader Configuration): Describe the new extra-initrd field. * gnu/bootloader.scm (<bootloader-configuration>): Add extra-initrd field. * gnu/bootloader/grub.scm (make-grub-configuration): Use the extra-initrd field. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Change-Id: I995989bb623bb594ccdafbf4a1a6de941bd4189f Tomas Volf