wok annotate aufs-utils/stuff/fix-kdir.patch @ rev 11458

lxdm: add intltootl to depends; put depends to gtk+
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 17 11:42:21 2011 +0100 (2011-12-17)
parents
children
rev   line source
slaxemulator@6711 1 diff --git a/Makefile b/Makefile
slaxemulator@6711 2 index dc1ba7a..239a21b 100644
slaxemulator@6711 3 --- a/Makefile
slaxemulator@6711 4 +++ b/Makefile
slaxemulator@6711 5 @@ -15,21 +15,7 @@
slaxemulator@6711 6 # along with this program; if not, write to the Free Software
slaxemulator@6711 7 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
slaxemulator@6711 8
slaxemulator@6711 9 -ifndef KDIR
slaxemulator@6711 10 -KDIR = /lib/modules/$(shell uname -r)/build
slaxemulator@6711 11 -endif
slaxemulator@6711 12 -ifneq "t" "$(shell test -e ${KDIR}/include/linux/stddef.h && echo t)"
slaxemulator@6711 13 -$(error incorrect KDIR)
slaxemulator@6711 14 -endif
slaxemulator@6711 15 -
slaxemulator@6711 16 -ifndef ARCH
slaxemulator@6711 17 -ARCH := $(shell uname -m)
slaxemulator@6711 18 -endif
slaxemulator@6711 19 -ARCH := $(shell echo ${ARCH} | sed -e 's/_64$$//')
slaxemulator@6711 20 -ArchDir = ${KDIR}/arch/${ARCH}/include
slaxemulator@6711 21 -
slaxemulator@6711 22 -CFLAGS += -I${KDIR}/include -I./libau
slaxemulator@6711 23 -CFLAGS += $(shell test -d ${ArchDir} && echo -I${ArchDir})
slaxemulator@6711 24 +CFLAGS += -I./libau
slaxemulator@6711 25 CFLAGS += -O -Wall
slaxemulator@6711 26
slaxemulator@6711 27 Cmd = umount.aufs auchk aubrsync
slaxemulator@6711 28 diff --git a/README b/README
slaxemulator@6711 29 index f1240e5..a95196d 100644
slaxemulator@6711 30 --- a/README
slaxemulator@6711 31 +++ b/README
slaxemulator@6711 32 @@ -9,17 +9,21 @@ And these are not for aufs1 essentially, except aubrsync. See below in
slaxemulator@6711 33 detail.
slaxemulator@6711 34
slaxemulator@6711 35 Makefile in this tree has some customizable make-variables.
slaxemulator@6711 36 -- KDIR
slaxemulator@6711 37 - specify your kernel source path if necessary.
slaxemulator@6711 38 - Note: this path should point kernel _source_ path, instead of kernel
slaxemulator@6711 39 - _build_ path. Don't confuse with the path in "make O=<kdir>" when you
slaxemulator@6711 40 - build a kernel in a different dir.
slaxemulator@6711 41 -- CPPFLAGS or ARCH
slaxemulator@6711 42 - specify the include path to your aufs2-standalone tree, if necessary.
slaxemulator@6711 43 - the makefile finds the correct ${KDIR}/arch/${ARCH}/include dir and
slaxemulator@6711 44 - sets the include path to CPPFLAGS="-I...". if the logic in Makefile is
slaxemulator@6711 45 - poor and doesn't support your build environment, then set the
slaxemulator@6711 46 - variables directly.
slaxemulator@6711 47 +- CPPFLAGS
slaxemulator@6711 48 + specify the include path if necessary.
slaxemulator@6711 49 + Some of linux kernel header files are necessary including
slaxemulator@6711 50 + linux/aufs_type.h. If you have installed kernel header files to
slaxemulator@6711 51 + /usr/include, then you may not need to specify CPPFLAGS.
slaxemulator@6711 52 + Otherwise you need to do something like this sample.
slaxemulator@6711 53 + + run "make headers_install" in your kernel source tree, and
slaxemulator@6711 54 + $LinuxSrc/usr/include is created and header files are installed
slaxemulator@6711 55 + there.
slaxemulator@6711 56 + + if you build aufs2 as module from aufs2-standalone.git, then
slaxemulator@6711 57 + $Aufs2Stdalone/usr/include is created and header files are
slaxemulator@6711 58 + installed there.
slaxemulator@6711 59 + + and specify
slaxemulator@6711 60 + CPPFLAGS="-I $LinuxSrc/usr/include -I $Aufs2Stdalone/usr/include"
slaxemulator@6711 61 +
slaxemulator@6711 62 - DESTDIR
slaxemulator@6711 63 specify your install path if necessary.
slaxemulator@6711 64 some commands have to be installed under /sbin.