From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Nigel Cunningham <ncunningham@cyclades.com>
Cc: Pavel Machek <pavel@ucw.cz>, Mark Lord <lkml@rtr.ca>,
linux-kernel@vger.kernel.org
Subject: Re: Suspend2-2.2.2 for 2.6.16.
Date: Thu, 30 Mar 2006 14:13:05 +0200 [thread overview]
Message-ID: <200603301413.06408.rjw@sisk.pl> (raw)
In-Reply-To: <200603301939.45872.ncunningham@cyclades.com>
[-- Attachment #1: Type: text/plain, Size: 406 bytes --]
Hi,
On Thursday 30 March 2006 11:39, Nigel Cunningham wrote:
> On Thursday 30 March 2006 19:34, Rafael J. Wysocki wrote:
> > Hi,
> >
> > On Wednesday 29 March 2006 12:50, Nigel Cunningham wrote:
> > > Don't bother suggesting that to x86_64 owners: compilation is currently
> > > broken in vbetool/lrmi.c (at least).
>
> I get:
Please try the Makefile that I use on x86_64 (attached).
Greetings,
Rafael
[-- Attachment #2: Makefile --]
[-- Type: text/x-makefile, Size: 3152 bytes --]
CONFIG_COMPRESS=yes
CONFIG_ENCRYPT=yes
ARCH=x86_64
CC_FLAGS=-I/usr/local/include
LD_FLAGS=-L/usr/local/lib
ifdef CONFIG_COMPRESS
CC_FLAGS += -DCONFIG_COMPRESS
LD_FLAGS += -llzf
endif
ifdef CONFIG_ENCRYPT
CC_FLAGS += -DCONFIG_ENCRYPT
LD_FLAGS += -lcrypto
endif
SUSPEND_DIR=/usr/local/sbin
CONFIG_DIR=/etc
RESUME_DEVICE=<path_to_resume_device_file>
BOOT_DIR=/boot
ifdef CONFIG_ENCRYPT
all: suspend suspend-keygen resume s2ram
else
all: suspend resume s2ram
endif
S2RAMOBJ=vt.o vbetool/lrmi.o vbetool/x86-common.o vbetool/vbetool.o radeontool.o dmidecode.o
ifeq ($(ARCH), x86_64)
S2RAMOBJ=vt.o vbetool/thunk.o vbetool/x86-common.o vbetool/vbetool.o vbetool/x86emu/libx86emu.a radeontool.o dmidecode.o
endif
clean:
rm -f suspend suspend-keygen suspend.keys resume s2ram *.o vbetool/*.o vbetool/x86emu/*.o vbetool/x86emu/*.a
s2ram: s2ram.c dmidecode.c whitelist.c radeontool.c $(S2RAMOBJ)
$(CC) -g -Wall -O2 s2ram.c $(S2RAMOBJ) -lpci -o s2ram
vbetool/vbetool.o: vbetool/vbetool.c
$(CC) -Wall -O2 -DS2RAM -c vbetool/vbetool.c -o vbetool/vbetool.o
vbetool/lrmi.o: vbetool/lrmi.c
$(CC) -Wall -O2 -c vbetool/lrmi.c -o vbetool/lrmi.o
vbetool/x86-common.o: vbetool/x86-common.c
$(CC) -Wall -O2 -c vbetool/x86-common.c -o vbetool/x86-common.o
vbetool/x86emu/libx86emu.a:
make -C vbetool/x86emu -f makefile.linux
vbetool/thunk.o: vbetool/thunk.c
$(CC) -Wall -O2 -c vbetool/thunk.c -o vbetool/thunk.o
dmidecode.o: dmidecode.c
$(CC) -Wall -O2 -DS2RAM -c dmidecode.c -o dmidecode.o
radeontool.o: radeontool.c
$(CC) -Wall -O2 -DS2RAM -c radeontool.c -o radeontool.o
md5.o: md5.c md5.h
$(CC) -Wall -o md5.o -DHAVE_INTTYPES_H -DHAVE_STDINT_H -c md5.c
encrypt.o: encrypt.c encrypt.h md5.h
$(CC) -Wall -DHAVE_INTTYPES_H -DHAVE_STDINT_H $(CC_FLAGS) -c encrypt.c
config.o: config.c config.h
$(CC) -Wall $(CC_FLAGS) -c config.c
vt.o: vt.c vt.h
$(CC) -Wall -c vt.c
suspend: md5.o encrypt.o config.o suspend.c swsusp.h config.h encrypt.h md5.h s2ram.c dmidecode.c whitelist.c radeontool.c $(S2RAMOBJ)
$(CC) -g -O2 -DCONFIG_BOTH -Wall $(CC_FLAGS) md5.o encrypt.o config.o suspend.c s2ram.c -o suspend $(S2RAMOBJ) $(LD_FLAGS) -lpci
resume: md5.o encrypt.o config.o resume.c swsusp.h config.h encrypt.h md5.h
$(CC) -Wall $(CC_FLAGS) md5.o encrypt.o config.o resume.c -static -o resume $(LD_FLAGS)
ifdef CONFIG_ENCRYPT
suspend-keygen: md5.o encrypt.o keygen.c encrypt.h md5.h
$(CC) -Wall -DHAVE_INTTYPES_H -DHAVE_STDINT_H -DCONFIG_ENCRYPT md5.o keygen.c -o suspend-keygen -lcrypto
install-suspend: suspend suspend-keygen conf/suspend.conf
if [ ! -c /dev/snapshot ]; then mknod /dev/snapshot c 10 231; fi
install --mode=755 suspend-keygen $(SUSPEND_DIR)
install --mode=755 suspend $(SUSPEND_DIR)
install --mode=644 conf/suspend.conf $(CONFIG_DIR)
else
install-suspend: suspend conf/suspend.conf
if [ ! -c /dev/snapshot ]; then mknod /dev/snapshot c 10 231; fi
install --mode=755 suspend $(SUSPEND_DIR)
install --mode=644 conf/suspend.conf $(CONFIG_DIR)
endif
install-resume-initrd: resume conf/suspend.conf
BOOT_DIR=$(BOOT_DIR) ./scripts/create-resume-initrd.sh $(RESUME_DEVICE)
install-resume: resume
./scripts/install-resume.sh
next prev parent reply other threads:[~2006-03-30 12:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-28 6:01 Suspend2-2.2.2 for 2.6.16 Nigel Cunningham
2006-03-28 10:50 ` Pavel Machek
2006-03-28 23:51 ` Mark Lord
2006-03-29 9:19 ` Pavel Machek
2006-03-29 10:50 ` Nigel Cunningham
2006-03-30 9:26 ` Pavel Machek
2006-03-30 9:35 ` Arkadiusz Miskiewicz
2006-03-30 9:44 ` Nigel Cunningham
2006-03-30 11:55 ` Pavel Machek
2006-03-30 11:59 ` Nigel Cunningham
2006-03-30 12:05 ` Pavel Machek
2006-03-30 12:17 ` Rafael J. Wysocki
2006-03-30 12:24 ` Rafael J. Wysocki
2006-03-30 12:59 ` Pavel Machek
2006-03-30 16:20 ` Rafael J. Wysocki
2006-03-30 9:34 ` Rafael J. Wysocki
2006-03-30 9:39 ` Nigel Cunningham
2006-03-30 11:57 ` Matthew Garrett
2006-03-30 12:13 ` Rafael J. Wysocki [this message]
2006-03-30 23:14 ` Nigel Cunningham
2006-03-31 8:12 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200603301413.06408.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=lkml@rtr.ca \
--cc=ncunningham@cyclades.com \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox