summaryrefslogtreecommitdiff
path: root/package/em28xx/Makefile
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/em28xx/Makefile
Initial import
Diffstat (limited to 'package/em28xx/Makefile')
-rw-r--r--package/em28xx/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/package/em28xx/Makefile b/package/em28xx/Makefile
new file mode 100644
index 000000000..887bcda70
--- /dev/null
+++ b/package/em28xx/Makefile
@@ -0,0 +1,43 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= em28xx
+PKG_VERSION:= 20081206
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 8467a1b1d495fa712c8beb617ef5f5dd
+MASTER_SITES:= http://waldemar-brodkorb.de/openadk/distfiles/
+
+WRKDIST= ${WRKDIR}/${PKG_NAME}
+
+include ${TOPDIR}/mk/package.mk
+
+
+$(eval $(call PKG_template,KMOD_EM28XX,kmod-em28xx,${KERNEL_VERSION}+${PKG_VERSION}-${DEVICE}-${PKG_RELEASE},${ARCH},kernel (${KERNEL_VERSION}-${DEVICE}-${KERNEL_RELEASE})))
+
+CONFIGURE_STYLE:= manual
+BUILD_STYLE:= manual
+
+EM28XX_MAKEOPTS= -C ${WRKBUILD} \
+ ARCH="${ARCH}" \
+ CROSS_COMPILE="${TARGET_CROSS}" \
+ TARGET="${HAL_TARGET}" \
+ TOOLPREFIX="${KERNEL_CROSS}" \
+ TOOLPATH="${KERNEL_CROSS}" \
+ KERNELPATH="${LINUX_DIR}" \
+ V=1
+
+
+do-build:
+ ${MAKE} ${EM28XX_MAKEOPTS} all
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_KMOD_EM28XX}/etc/modules.d/
+ ${INSTALL_DIR} ${IDIR_KMOD_EM28XX}/lib/modules/${KERNEL_VERSION}/
+ ${CP} ${WRKBUILD}/*.ko \
+ ${IDIR_KMOD_EM28XX}/lib/modules/${KERNEL_VERSION}/
+
+include ${TOPDIR}/mk/pkg-bottom.mk