Description: Build for zynqmp when compiling natively
 Build for zynqmp also when not cross-compiling, as we want to build
 the debian package in a native build environment.
 .
 xrt (202010.2.7.766-0ubuntu2) focal; urgency=medium
 .
   * Add xrt-embedded package for arm64.
     The structure of this package is significantly different to the xrt
     one.
Author: Alfonso Sanchez-Beato (email Canonical) <alfonso.sanchez-beato@canonical.com>
Origin: vendor
Forwarded: no
Last-Update: 2020-10-02

--- xrt-202010.2.7.766.orig/src/CMake/embedded_system.cmake
+++ xrt-202010.2.7.766/src/CMake/embedded_system.cmake
@@ -97,10 +97,11 @@ install (
   COMPONENT ${XRT_DEV_COMPONENT}
   )
 
+set (XRT_DKMS_DRIVER_SRC_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/runtime_src/core")
+include (CMake/dkms-edge.cmake)
+
 if (DEFINED CROSS_COMPILE)
   set (LINUX_FLAVOR ${flavor})
   set (LINUX_VERSION ${version})
   include (CMake/cpackLin.cmake)
-  set (XRT_DKMS_DRIVER_SRC_BASE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/runtime_src/core")
-  include (CMake/dkms-edge.cmake)
 endif()
