Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:= iproute2
  5. PKG_VERSION:= 2.6.29-1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c1bc258a6c345905e79935ac7a3cc582
  8. PKG_DESCR:= iproute2 routing control utility
  9. PKG_SECTION:= net
  10. PKG_URL:= http://www.linuxfoundation.org/en/Net:Iproute2
  11. PKG_SITES:= http://developer.osdl.org/dev/iproute2/download/
  12. PKG_DESCR_1:= iproute2 traffic control utility
  13. PKG_DEPENDS_1:= kmod-sched
  14. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,IP,ip,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. $(eval $(call PKG_template,TC,tc,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS_1},${PKG_DESCR_1},${PKG_SECTION}))
  18. do-configure:
  19. ${SED} "s:-O2:${TARGET_CFLAGS}:g" ${WRKBUILD}/Makefile
  20. ${SED} "s,-I/usr/include/db3,," ${WRKBUILD}/Makefile
  21. ${SED} "s,^KERNEL_INCLUDE.*,KERNEL_INCLUDE=${LINUX_DIR}/include," \
  22. ${WRKBUILD}/Makefile
  23. ${SED} "s,^LIBC_INCLUDE.*,LIBC_INCLUDE=${STAGING_DIR}/include," \
  24. ${WRKBUILD}/Makefile
  25. # For now disable compiling of the misc directory because it seems to fail
  26. rm -rf ${WRKBUILD}/misc
  27. ${SED} "s, misc,," ${WRKBUILD}/Makefile
  28. # netem is 2.6 only stuff
  29. ${SED} "s, netem,," ${WRKBUILD}/Makefile
  30. do-build:
  31. ${MAKE} -C ${WRKBUILD}/netem \
  32. HOSTCC=${HOSTCC} \
  33. CCOPTS="-I${LINUX_DIR}" \
  34. ${MAKE} -C ${WRKBUILD} ${TARGET_CONFIGURE_OPTS} \
  35. CFLAGS="-D_GNU_SOURCE ${TARGET_CFLAGS} -I ../include -DRESOLVE_HOSTNAMES" \
  36. KERNEL_INCLUDE=${LINUX_DIR}/include all tc/tc ip/ip \
  37. CCOPTS="-I${LINUX_DIR}"
  38. do-install:
  39. ${INSTALL_DIR} ${IDIR_IP}/usr/sbin
  40. ${CP} ${WRKBUILD}/ip/ip ${IDIR_IP}/usr/sbin/
  41. ${INSTALL_DIR} ${IDIR_TC}/usr/sbin
  42. ${CP} ${WRKBUILD}/tc/tc ${IDIR_TC}/usr/sbin/
  43. include ${TOPDIR}/mk/pkg-bottom.mk