diff options
Diffstat (limited to 'modutils/modutils_2.4.25.oe')
-rw-r--r-- | modutils/modutils_2.4.25.oe | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modutils/modutils_2.4.25.oe b/modutils/modutils_2.4.25.oe index cfee450fab..b9077b5a27 100644 --- a/modutils/modutils_2.4.25.oe +++ b/modutils/modutils_2.4.25.oe @@ -7,3 +7,21 @@ inherit autotools EXTRA_OECONF = --disable-strip export BUILDCC = ${BUILD_CC} + +do_install_prepend () { + oe_runmake 'DESTDIR=${D}' install +} + +do_install () { + install -d ${D}/${sysconfdir} + if [ -e ${FILESDIR}/modules_${MACHINE} ]; then + install -m 0644 ${FILESDIR}/modules_${MACHINE} ${D}/${sysconfdir}/modules + else + touch ${D}/${sysconfdir}/modules + fi + if [ -e ${FILESDIR}/modules.conf_${MACHINE} ]; then + install -m 0644 ${FILESDIR}/modules.conf_${MACHINE} ${D}/${sysconfdir}/modules.conf + else + touch ${D}/${sysconfdir}/modules.conf + fi +} |