Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= rtsp
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 92bb09883dd8a77ec5cfbff1c8932b15
  8. PKG_DESCR:= connection tracking for RTSP
  9. PKG_SECTION:= kernel
  10. PKG_URL:= http://github.com/maru-sama/rtsp-linux-v2.6
  11. NO_DISTFILES:= 1
  12. include ${TOPDIR}/mk/package.mk
  13. $(eval $(call PKG_template,KMOD_RTSP,kmod-rtsp,${KERNEL_VERSION}-${ADK_TARGET}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  14. CONFIG_STYLE:= manual
  15. BUILD_STYLE:= manual
  16. INSTALL_STYLE:= manual
  17. pre-build:
  18. ARCH=${ARCH} KERNELDIR=${LINUX_DIR} \
  19. PREFIX=/usr CROSS_COMPILE="${TARGET_CROSS}" \
  20. LD=$(TARGET_CROSS)gcc LDFLAGS="" CFLAGS="-Wall" \
  21. $(MAKE) -C ${WRKBUILD} debug V=1
  22. do-install:
  23. ${INSTALL_DIR} ${IDIR_KMOD_RTSP}/etc/modules.d/
  24. echo "nf_conntrack_rtsp" > ${IDIR_KMOD_RTSP}/etc/modules.d/60-nf-nat-rtsp
  25. echo "nf_nat_rtsp" >> ${IDIR_KMOD_RTSP}/etc/modules.d/60-nf-nat-rtsp
  26. ${INSTALL_DIR} ${IDIR_KMOD_RTSP}/lib/modules/${KERNEL_VERSION}/
  27. ${INSTALL_DATA} ${WRKBUILD}/*.ko \
  28. ${IDIR_KMOD_RTSP}/lib/modules/${KERNEL_VERSION}
  29. include ${TOPDIR}/mk/pkg-bottom.mk