]> git.proxmox.com Git - pve-kernel.git/blobdiff - Makefile
buildsys: abi-generate: add usage output
[pve-kernel.git] / Makefile
index e1d9f3c7d7f006783572cc727dbf12f72cf237cf..22b6cb434ee22ae3587dbedd41c55711f813411d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
 RELEASE=5.1
 
 # also update pve-kernel-meta.git if either of these change
-KERNEL_VER=4.13.13
-KREL=6
+KERNEL_VER=4.13.16
+KREL=3
 
-PKGREL=42
+PKGREL=49
 
 EXTRAVERSION=-${KREL}-pve
 KVNAME=${KERNEL_VER}${EXTRAVERSION}
@@ -146,6 +146,8 @@ $(ZFSDIR).prepared: ${ZFSSRC}
        mkdir -p ${BUILD_DIR}/${MODULES}/${ZFSDIR}
        cp -a ${ZFSSRC}/* ${BUILD_DIR}/${MODULES}/${ZFSDIR}
        cd ${BUILD_DIR}/${MODULES}/${ZFSDIR}; for patch in ../../../${ZFSSRC}/../zfs-patches/*.patch; do patch -p1 < $${patch}; done
+       # temporarily since patch does not know about permissions, remove after 0.7.7 was merged properly
+       chmod +x ${BUILD_DIR}/${MODULES}/${ZFSDIR}/scripts/enum-extract.pl
        touch $@
 
 .PHONY: upload
@@ -170,7 +172,26 @@ submodule:
        test -f "${ZFSONLINUX_SUBMODULE}/Makefile" || git submodule update --init ${ZFSONLINUX_SUBMODULE}
        (test -f "${ZFSSRC}/debian/changelog" && test -f "${SPLZRC}/debian/changelog") || (cd ${ZFSONLINUX_SUBMODULE}; git submodule update --init)
 
+# call after ABI bump with header deb in working directory
+.PHONY: abiupdate
+abiupdate: abi-prev-${KVNAME}
+abi-prev-${KVNAME}: abi-tmp-${KVNAME}
+ifneq ($(strip $(shell git status --untracked-files=no --porcelain -z)),)
+       @echo "working directory unclean, aborting!"
+       @false
+else
+       git rm "abi-prev-*"
+       mv $< $@
+       git add $@
+       git commit -s -m "update ABI file for ${KVNAME}" -m "(generated with debian/scripts/abi-generate)"
+       @echo "update abi-prev-${KVNAME} committed!"
+endif
+
+abi-tmp-${KVNAME}:
+       @ test -e ${HDR_DEB} || (echo "need ${HDR_DEB} to extract ABI data!" && false)
+       debian/scripts/abi-generate ${HDR_DEB} $@ ${KVNAME} 1
 
 .PHONY: clean
 clean:
        rm -rf *~ build *.prepared ${KERNEL_CFG_ORG}
+       rm -f *.deb *.changes *.buildinfo