diff --git a/.gitmodules b/.gitmodules index 2c4a3d518..e93978d2a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -20,3 +20,6 @@ [submodule "3rd/googletest"] path = 3rd/googletest url = https://github.com/google/googletest.git +[submodule "3rd/grub2"] + path = 3rd/grub2 + url = https://git.savannah.gnu.org/git/grub.git diff --git a/3rd/grub2 b/3rd/grub2 new file mode 160000 index 000000000..6811f6f09 --- /dev/null +++ b/3rd/grub2 @@ -0,0 +1 @@ +Subproject commit 6811f6f09d61996a3acbc4fc0414e45964f0e2d9 diff --git a/cmake/3rd.cmake b/cmake/3rd.cmake index 9cfcbbe79..0077f8dc5 100644 --- a/cmake/3rd.cmake +++ b/cmake/3rd.cmake @@ -58,6 +58,12 @@ if (NOT TARGET gtest) include(GoogleTest) endif () +# https://git.savannah.gnu.org/git/grub.git +set(grub2_SOURCE_DIR ${CMAKE_SOURCE_DIR}/3rd/grub2) +target_include_directories(grub2 INTERFACE + ${grub2_SOURCE_DIR}/include +) + # https://github.com/gdbinit/Gdbinit.git set(gdbinit_SOURCE_DIR ${CMAKE_SOURCE_DIR}/3rd/gdbinit) set(gdbinit_BINARY_DIR ${CMAKE_BINARY_DIR}/3rd/gdbinit)