* [PATCH 1/6] kexec-tools: Fix rpm Version tag
2010-03-18 20:03 [PATCH 0/6] kexec-tools: Fix rpm build Ameya Palande
@ 2010-03-18 20:03 ` Ameya Palande
2010-03-18 20:03 ` [PATCH 2/6] kexec-tools: Use same source in rpm spec and Makefile.in Ameya Palande
` (5 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Ameya Palande @ 2010-03-18 20:03 UTC (permalink / raw)
To: kexec; +Cc: horms
Version tag in rpm spec file doesn't allow '-', so use '_' to fix the rpm
build.
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 88d2e0b..f3994a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,7 +4,7 @@ dnl
dnl
dnl ---Required
-AC_INIT(kexec-tools, 2.0.1-git)
+AC_INIT(kexec-tools, 2.0.1_git)
AC_CONFIG_AUX_DIR(./config)
AC_CONFIG_HEADERS([include/config.h])
AC_LANG(C)
--
1.6.3.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 2/6] kexec-tools: Use same source in rpm spec and Makefile.in
2010-03-18 20:03 [PATCH 0/6] kexec-tools: Fix rpm build Ameya Palande
2010-03-18 20:03 ` [PATCH 1/6] kexec-tools: Fix rpm Version tag Ameya Palande
@ 2010-03-18 20:03 ` Ameya Palande
2010-03-18 20:03 ` [PATCH 3/6] kexec-tools: Add missing include files in dist target Ameya Palande
` (4 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Ameya Palande @ 2010-03-18 20:03 UTC (permalink / raw)
To: kexec; +Cc: horms
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
---
Makefile.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index cb0faae..3532457 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -202,7 +202,7 @@ $(TARBALL.gz): $(TARBALL)
gzip -c < $^ > $@
RPMDIR=rpm
-rpm: $(TARBALL)
+rpm: $(TARBALL.gz)
$(MKDIR) -p $(RPMDIR)/RPM $(RPMDIR)/SRPM $(RPMDIR)/BUILD \
$(RPMDIR)/SPECS $(RPMDIR)/TMP $(RPMDIR)/SOURCES
unset MAKEFLAGS MAKELEVEL; \
@@ -213,7 +213,7 @@ rpm: $(TARBALL)
--define '_specdir $(RPMDIR)/SPECS' \
--define '_tmppath $(RPMDIR)/TMP' \
--define '_sourcedir $(RPMDIR)/SOURCES' \
- $(TARBALL)
+ $(TARBALL.gz)
$(SPEC): kexec-tools.spec.in Makefile
$(SED) -e 's,^Version: $$,Version: $(PACKAGE_VERSION),' $< > $@
--
1.6.3.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 3/6] kexec-tools: Add missing include files in dist target
2010-03-18 20:03 [PATCH 0/6] kexec-tools: Fix rpm build Ameya Palande
2010-03-18 20:03 ` [PATCH 1/6] kexec-tools: Fix rpm Version tag Ameya Palande
2010-03-18 20:03 ` [PATCH 2/6] kexec-tools: Use same source in rpm spec and Makefile.in Ameya Palande
@ 2010-03-18 20:03 ` Ameya Palande
2010-03-18 20:03 ` [PATCH 4/6] kexec-tools: Add kdump and kexec_test to rpm spec Ameya Palande
` (3 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Ameya Palande @ 2010-03-18 20:03 UTC (permalink / raw)
To: kexec; +Cc: horms
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
---
include/Makefile | 1 +
kexec/Makefile | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/include/Makefile b/include/Makefile
index de5a3bb..12c1030 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -6,6 +6,7 @@ dist += include/Makefile \
include/x86/mb_header.h \
include/elf.h \
include/image.h \
+ include/unused.h \
include/boot/linuxbios_tables.h \
include/boot/beoboot.h \
include/boot/elf_boot.h
diff --git a/kexec/Makefile b/kexec/Makefile
index 9a55af2..4e091ba 100644
--- a/kexec/Makefile
+++ b/kexec/Makefile
@@ -32,6 +32,7 @@ dist += kexec/Makefile $(KEXEC_SRCS) $(KEXEC_GENERATED_SRCS) \
kexec/crashdump.h kexec/firmware_memmap.h \
kexec/kexec-elf-boot.h \
kexec/kexec-elf.h kexec/kexec-sha256.h \
+ kexec/kexec-zlib.h kexec/kexec-lzma.h \
kexec/kexec-syscall.h kexec/kexec.h kexec/kexec.8
$(ARCH)_PROC_IOMEM = kexec/proc_iomem.c
--
1.6.3.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 4/6] kexec-tools: Add kdump and kexec_test to rpm spec
2010-03-18 20:03 [PATCH 0/6] kexec-tools: Fix rpm build Ameya Palande
` (2 preceding siblings ...)
2010-03-18 20:03 ` [PATCH 3/6] kexec-tools: Add missing include files in dist target Ameya Palande
@ 2010-03-18 20:03 ` Ameya Palande
2010-03-18 20:03 ` [PATCH 5/6] kexec-tools: Add rpm spec file to the dist-clean target Ameya Palande
` (2 subsequent siblings)
6 siblings, 0 replies; 15+ messages in thread
From: Ameya Palande @ 2010-03-18 20:03 UTC (permalink / raw)
To: kexec; +Cc: horms
Without this patch rpmbuild complains about unpackaged kdump and kexec_test
files.
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
---
kexec-tools.spec.in | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/kexec-tools.spec.in b/kexec-tools.spec.in
index 2aa1310..5eadece 100644
--- a/kexec-tools.spec.in
+++ b/kexec-tools.spec.in
@@ -30,6 +30,8 @@ make install DESTDIR=${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%{_sbindir}/kexec
+%{_sbindir}/kdump
+%{_libdir}/%{name}/kexec_test
%doc News
%doc COPYING
%doc TODO
--
1.6.3.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 5/6] kexec-tools: Add rpm spec file to the dist-clean target
2010-03-18 20:03 [PATCH 0/6] kexec-tools: Fix rpm build Ameya Palande
` (3 preceding siblings ...)
2010-03-18 20:03 ` [PATCH 4/6] kexec-tools: Add kdump and kexec_test to rpm spec Ameya Palande
@ 2010-03-18 20:03 ` Ameya Palande
2010-03-18 20:03 ` [PATCH 6/6] kexec-tools: Use default rpmbuild definations Ameya Palande
2010-03-24 11:29 ` [PATCH 0/6] kexec-tools: Fix rpm build Simon Horman
6 siblings, 0 replies; 15+ messages in thread
From: Ameya Palande @ 2010-03-18 20:03 UTC (permalink / raw)
To: kexec; +Cc: horms
This patch adds rpm spec file to the "make dist-clean" target and also removes
a wrong comment.
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
---
Makefile.in | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 3532457..256f4de 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -126,7 +126,6 @@ all: $(TARGETS)
# collect objects to be removed in 'make clean'
clean =
-# collect objects to be removed in 'make clean'
dist = AUTHORS COPYING INSTALL News TODO Makefile.in configure.ac configure \
kexec-tools.spec.in config/
@@ -235,7 +234,7 @@ distclean: dist-clean
dist-clean: clean
$(RM) -f config.log config.status config.cache Makefile include/config.h
- $(RM) -f include/config.h.in configure
+ $(RM) -f include/config.h.in configure $(SPEC)
$(RM) -rf autom4te.cache
install: $(TARGETS)
--
1.6.3.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 6/6] kexec-tools: Use default rpmbuild definations
2010-03-18 20:03 [PATCH 0/6] kexec-tools: Fix rpm build Ameya Palande
` (4 preceding siblings ...)
2010-03-18 20:03 ` [PATCH 5/6] kexec-tools: Add rpm spec file to the dist-clean target Ameya Palande
@ 2010-03-18 20:03 ` Ameya Palande
2010-03-19 20:37 ` Eric W. Biederman
2010-03-24 11:29 ` [PATCH 0/6] kexec-tools: Fix rpm build Simon Horman
6 siblings, 1 reply; 15+ messages in thread
From: Ameya Palande @ 2010-03-18 20:03 UTC (permalink / raw)
To: kexec; +Cc: horms
Since current mechanism for building rpm into custom directory is not working,
remove it and switch to system defaults for rpmbuild.
Signed-off-by: Ameya Palande <ameya.palande@nokia.com>
---
Makefile.in | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index 256f4de..cc4f8d3 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -200,19 +200,9 @@ $(TARBALL): $(SRCS) $(GENERATED_SRCS)
$(TARBALL.gz): $(TARBALL)
gzip -c < $^ > $@
-RPMDIR=rpm
rpm: $(TARBALL.gz)
- $(MKDIR) -p $(RPMDIR)/RPM $(RPMDIR)/SRPM $(RPMDIR)/BUILD \
- $(RPMDIR)/SPECS $(RPMDIR)/TMP $(RPMDIR)/SOURCES
- unset MAKEFLAGS MAKELEVEL; \
- $(RPMBUILD) -ta \
- --define '_rpmdir $(RPMDIR)/RPM' \
- --define '_srcrpmdir $(RPMDIR)/SRPM' \
- --define '_builddir $(RPMDIR)/BUILD' \
- --define '_specdir $(RPMDIR)/SPECS' \
- --define '_tmppath $(RPMDIR)/TMP' \
- --define '_sourcedir $(RPMDIR)/SOURCES' \
- $(TARBALL.gz)
+ unset MAKEFLAGS MAKELEVEL;
+ $(RPMBUILD) -ta $(TARBALL.gz)
$(SPEC): kexec-tools.spec.in Makefile
$(SED) -e 's,^Version: $$,Version: $(PACKAGE_VERSION),' $< > $@
@@ -227,7 +217,7 @@ echo::
clean:
$(RM) -f $(clean)
- $(RM) -rf rpm build
+ $(RM) -rf build
$(RM) -f $(TARBALL) $(TARBALL.gz)
distclean: dist-clean
--
1.6.3.3
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH 6/6] kexec-tools: Use default rpmbuild definations
2010-03-18 20:03 ` [PATCH 6/6] kexec-tools: Use default rpmbuild definations Ameya Palande
@ 2010-03-19 20:37 ` Eric W. Biederman
2010-03-20 9:43 ` Bernhard Walle
0 siblings, 1 reply; 15+ messages in thread
From: Eric W. Biederman @ 2010-03-19 20:37 UTC (permalink / raw)
To: Ameya Palande; +Cc: horms, kexec
Ameya Palande <2ameya@gmail.com> writes:
> Since current mechanism for building rpm into custom directory is not working,
> remove it and switch to system defaults for rpmbuild.
Does RPM really bit rot that quickly?
I know at the time I added the code it was the only way I could
get rpm to build an rpm without being root. Something that seems
desirable.
Eric
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 6/6] kexec-tools: Use default rpmbuild definations
2010-03-19 20:37 ` Eric W. Biederman
@ 2010-03-20 9:43 ` Bernhard Walle
2010-03-22 8:56 ` Ameya Palande
2010-03-24 11:30 ` Simon Horman
0 siblings, 2 replies; 15+ messages in thread
From: Bernhard Walle @ 2010-03-20 9:43 UTC (permalink / raw)
To: kexec
Am 19.03.2010 21:37, schrieb Eric W. Biederman:
> Ameya Palande <2ameya@gmail.com> writes:
>
>> Since current mechanism for building rpm into custom directory is not working,
>> remove it and switch to system defaults for rpmbuild.
>
> Does RPM really bit rot that quickly?
>
> I know at the time I added the code it was the only way I could
> get rpm to build an rpm without being root. Something that seems
> desirable.
It works here on openSUSE 11.1 when I change
-RPMDIR=rpm
+RPMDIR=$(shell pwd)/rpm
Of course only after applying the other patches...
Regards,
Bernhard
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 6/6] kexec-tools: Use default rpmbuild definations
2010-03-20 9:43 ` Bernhard Walle
@ 2010-03-22 8:56 ` Ameya Palande
2010-03-24 11:30 ` Simon Horman
1 sibling, 0 replies; 15+ messages in thread
From: Ameya Palande @ 2010-03-22 8:56 UTC (permalink / raw)
To: ext Bernhard Walle; +Cc: kexec@lists.infradead.org
On Sat, 2010-03-20 at 10:43 +0100, ext Bernhard Walle wrote:
> Am 19.03.2010 21:37, schrieb Eric W. Biederman:
> > Ameya Palande <2ameya@gmail.com> writes:
> >
> >> Since current mechanism for building rpm into custom directory is not working,
> >> remove it and switch to system defaults for rpmbuild.
> >
> > Does RPM really bit rot that quickly?
> >
> > I know at the time I added the code it was the only way I could
> > get rpm to build an rpm without being root. Something that seems
> > desirable.
I can build rpm on ubuntu 9.10 as a normal user without having this
custom "rpm" directory.
> It works here on openSUSE 11.1 when I change
>
> -RPMDIR=rpm
> +RPMDIR=$(shell pwd)/rpm
On Ubuntu 9.10 when I removed RPMDIR stuff, rpmbuild command takes
system defaults and builds rpm in $HOME/rpmbuild directory.
Cheers,
Ameya.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 6/6] kexec-tools: Use default rpmbuild definations
2010-03-20 9:43 ` Bernhard Walle
2010-03-22 8:56 ` Ameya Palande
@ 2010-03-24 11:30 ` Simon Horman
2010-03-25 20:34 ` Bernhard Walle
1 sibling, 1 reply; 15+ messages in thread
From: Simon Horman @ 2010-03-24 11:30 UTC (permalink / raw)
To: Bernhard Walle; +Cc: kexec
On Sat, Mar 20, 2010 at 10:43:49AM +0100, Bernhard Walle wrote:
> Am 19.03.2010 21:37, schrieb Eric W. Biederman:
> > Ameya Palande <2ameya@gmail.com> writes:
> >
> >> Since current mechanism for building rpm into custom directory is not working,
> >> remove it and switch to system defaults for rpmbuild.
> >
> > Does RPM really bit rot that quickly?
> >
> > I know at the time I added the code it was the only way I could
> > get rpm to build an rpm without being root. Something that seems
> > desirable.
>
> It works here on openSUSE 11.1 when I change
>
> -RPMDIR=rpm
> +RPMDIR=$(shell pwd)/rpm
>
> Of course only after applying the other patches...
That seems reasonable to me, care to make it a proper patch?
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 6/6] kexec-tools: Use default rpmbuild definations
2010-03-24 11:30 ` Simon Horman
@ 2010-03-25 20:34 ` Bernhard Walle
2010-03-25 22:55 ` Simon Horman
2010-03-29 7:13 ` Anyone working on kexec for embedded powerpc? Daniel Flemström
0 siblings, 2 replies; 15+ messages in thread
From: Bernhard Walle @ 2010-03-25 20:34 UTC (permalink / raw)
To: Simon Horman; +Cc: kexec
Am 24.03.2010 12:30, schrieb Simon Horman:
> On Sat, Mar 20, 2010 at 10:43:49AM +0100, Bernhard Walle wrote:
>> Am 19.03.2010 21:37, schrieb Eric W. Biederman:
>>> Ameya Palande <2ameya@gmail.com> writes:
>>>
>>>> Since current mechanism for building rpm into custom directory is not working,
>>>> remove it and switch to system defaults for rpmbuild.
>>>
>>> Does RPM really bit rot that quickly?
>>>
>>> I know at the time I added the code it was the only way I could
>>> get rpm to build an rpm without being root. Something that seems
>>> desirable.
>>
>> It works here on openSUSE 11.1 when I change
>>
>> -RPMDIR=rpm
>> +RPMDIR=$(shell pwd)/rpm
>>
>> Of course only after applying the other patches...
>
> That seems reasonable to me, care to make it a proper patch?
Since 529ad47e356a8e68be9cde771af8e909a784c3fc has been applied which
removes that code, this is no longer possible. ;)
However, I'm fine with that change. The user can always create a custom
~/.rpmmacros like
%_topdir /home/bwalle/src/packages
to build the RPM in a local tree.
Regards,
Bernhard
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 6/6] kexec-tools: Use default rpmbuild definations
2010-03-25 20:34 ` Bernhard Walle
@ 2010-03-25 22:55 ` Simon Horman
2010-03-29 7:13 ` Anyone working on kexec for embedded powerpc? Daniel Flemström
1 sibling, 0 replies; 15+ messages in thread
From: Simon Horman @ 2010-03-25 22:55 UTC (permalink / raw)
To: Bernhard Walle; +Cc: kexec
On Thu, Mar 25, 2010 at 09:34:52PM +0100, Bernhard Walle wrote:
> Am 24.03.2010 12:30, schrieb Simon Horman:
> > On Sat, Mar 20, 2010 at 10:43:49AM +0100, Bernhard Walle wrote:
> >> Am 19.03.2010 21:37, schrieb Eric W. Biederman:
> >>> Ameya Palande <2ameya@gmail.com> writes:
> >>>
> >>>> Since current mechanism for building rpm into custom directory is not working,
> >>>> remove it and switch to system defaults for rpmbuild.
> >>>
> >>> Does RPM really bit rot that quickly?
> >>>
> >>> I know at the time I added the code it was the only way I could
> >>> get rpm to build an rpm without being root. Something that seems
> >>> desirable.
> >>
> >> It works here on openSUSE 11.1 when I change
> >>
> >> -RPMDIR=rpm
> >> +RPMDIR=$(shell pwd)/rpm
> >>
> >> Of course only after applying the other patches...
> >
> > That seems reasonable to me, care to make it a proper patch?
>
> Since 529ad47e356a8e68be9cde771af8e909a784c3fc has been applied which
> removes that code, this is no longer possible. ;)
;)
>
> However, I'm fine with that change. The user can always create a custom
> ~/.rpmmacros like
>
> %_topdir /home/bwalle/src/packages
>
> to build the RPM in a local tree.
Ok, that seems reasonable to me too.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread
* Anyone working on kexec for embedded powerpc?
2010-03-25 20:34 ` Bernhard Walle
2010-03-25 22:55 ` Simon Horman
@ 2010-03-29 7:13 ` Daniel Flemström
1 sibling, 0 replies; 15+ messages in thread
From: Daniel Flemström @ 2010-03-29 7:13 UTC (permalink / raw)
To: kexec@lists.infradead.org
[-- Attachment #1.1: Type: text/plain, Size: 712 bytes --]
Hi all!
I have a mpc8641 hpcn board which i want to run kexec on and also do some research on software restart.
I think kexec is an excellent idea for embedded systems where you want to have quick restarts, but currently I can only see ppc gamecube support.
Somewhere i saw that Benjamin Herrenschmidt had plans, but it was a rather old message. Have anyone done any work with this for powerpc?
Otherwise i intend do start some work to port it to the powerpc platform(if possible).
I guess that the powerpc usage of device tree instead of the "blob" might be the biggest issue?
Is this the correct place for these discussions?
/Daniel Flemström
SE research department
Mälardalen University
[-- Attachment #1.2: Type: text/html, Size: 1008 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/6] kexec-tools: Fix rpm build
2010-03-18 20:03 [PATCH 0/6] kexec-tools: Fix rpm build Ameya Palande
` (5 preceding siblings ...)
2010-03-18 20:03 ` [PATCH 6/6] kexec-tools: Use default rpmbuild definations Ameya Palande
@ 2010-03-24 11:29 ` Simon Horman
6 siblings, 0 replies; 15+ messages in thread
From: Simon Horman @ 2010-03-24 11:29 UTC (permalink / raw)
To: Ameya Palande; +Cc: kexec
On Thu, Mar 18, 2010 at 10:03:18PM +0200, Ameya Palande wrote:
> This patchset fixes currently broken rpm build.
Thanks, I have applied all of these.
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
^ permalink raw reply [flat|nested] 15+ messages in thread