浏览代码

Fix packaging for module.lds

This change adds a workaround that includes again module.lds in the
kernel headers, which is necessary for building dynamic kernel modules.

See https://github.com/Mange/rtl8192eu-linux-driver/issues/205#issuecomment-736366347
for more information.

Fixes #48
Fabian Mastenbroek 4 年之前
父节点
当前提交
3f2686df8a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      debian/rules

+ 4 - 0
debian/rules

@@ -194,6 +194,10 @@ binary: install
 	        xargs -n1 -i: find : -type f \
 	        xargs -n1 -i: find : -type f \
 	    ) | \
 	    ) | \
 	    cpio -pd --preserve-modification-time ${BUILD_DIR}/debian/${PVE_HEADER_PKG}/usr/src/linux-headers-${KVNAME}
 	    cpio -pd --preserve-modification-time ${BUILD_DIR}/debian/${PVE_HEADER_PKG}/usr/src/linux-headers-${KVNAME}
+	# Workaround for #48
+	mv ${BUILD_DIR}/debian/${PVE_HEADER_PKG}/usr/src/linux-headers-${KVNAME}/scripts/module.lds.S \
+	    ${BUILD_DIR}/debian/${PVE_HEADER_PKG}/usr/src/linux-headers-${KVNAME}/scripts/module.lds
+	sed -i '$$ d' ${BUILD_DIR}/debian/${PVE_HEADER_PKG}/usr/src/linux-headers-${KVNAME}/scripts/module.lds
 	touch $@
 	touch $@
 
 
 .headers_compile_mark: .headers_prepare_mark
 .headers_compile_mark: .headers_prepare_mark