Skip to content

Commit

Permalink
cmake: Install headers and symbol table for driver development
Browse files Browse the repository at this point in the history
Followings are installed in addition to ihk_host_driver.h
archdefs.h
status.h
ihk_monitor.h
ihk_debug.h
ihk/linux/core/Module.symvers

Fixes: b1f7b4f "spec: Add ihk_host_driver.h to mckernel-devel"
Change-Id: I84d7b2b73351c4d646d17589b1ed91fc8dc9644c
  • Loading branch information
masamichitakagi committed Apr 8, 2020
1 parent 961151b commit dd52fbb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
17 changes: 15 additions & 2 deletions linux/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,18 @@ kmod(ihk
${KMODDIR}
)

install(FILES "../include/ihk/ihk_host_driver.h"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ihk")
install(FILES ../include/ihk/arch/${ARCH}/ihk/archdefs.h
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ihk")

foreach(target IN ITEMS
status.h
ihk_monitor.h
ihk_debug.h
ihk_host_driver.h
)
install(FILES ../include/ihk/${target}
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ihk")
endforeach()

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Module.symvers
DESTINATION "${KMODDIR}/ihk/linux/core")
1 change: 1 addition & 0 deletions linux/include/ihk/ihk_host_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#ifndef __HEADER_IHK_HOST_DRIVER_H
#define __HEADER_IHK_HOST_DRIVER_H

#include <linux/list.h>
#include <ihk/archdefs.h>
#include <ihk/status.h>
#include <ihk/ihk_monitor.h>
Expand Down

0 comments on commit dd52fbb

Please sign in to comment.