From: Mark Hatle <mark.hatle@windriver.com>
To: <poky@yoctoproject.org>
Subject: Re: Installing GDB or the saga of getting RPM/Zypp to run on JFFS2
Date: Tue, 12 Jul 2011 14:55:02 -0500 [thread overview]
Message-ID: <4E1CA696.9010406@windriver.com> (raw)
In-Reply-To: <4E10607A.1070909@freyther.de>
On 7/3/11 7:28 AM, Holger Hans Peter Freyther wrote:
> On 07/01/2011 03:44 PM, Mark Hatle wrote:
>
>>
>> macro files are being loaded from:
>>
>> %{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:%{_etcrpm}/macros.*:%{_etcrpm}/macros:%{_etcrpm}/%{_target}/macros:~/.oerpmmacros
>>
>> The key above is the /etc/rpm/macros.*
>>
>> I would recommend a new file be generated called /etc/rpm/macros.jffs2 that
>> changes the setting as appropriate for that filesystem. (How it's placed into
>> the filesystem I'm not sure. I think it all comes down to detecting we're
>> building a jffs2 filesystem and doing it there. Perhaps in the rootfs_rpm.bbclass?)
>
> What do you think about something like the change below? Alternatively one
> could write a post-inst script that checks if one is on jffs2 and then creates
> the config file.
Sorry for the late reply. I'm back from vacation now.
The below is fine with me. I suggest it be submitted as a patch to oe-core.
I'll be happy to ack it.
--Mark
>
> diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
> index 3a11858..70459e5 100644
> --- a/meta/classes/rootfs_rpm.bbclass
> +++ b/meta/classes/rootfs_rpm.bbclass
> @@ -139,6 +139,14 @@ EOF
> install -d ${IMAGE_ROOTFS}/${sysconfdir}
> echo ${BUILDNAME} > ${IMAGE_ROOTFS}/${sysconfdir}/version
>
> +
> + # check if there is a jffs2 install, it requires a workaround
> + # due lacking support for MMAP read/write.
> + (echo "${IMAGE_FSTYPES}" | grep "jffs2" > /dev/null)
> + if [ $? == 0 ]; then
> + echo "%__dbi_txn create lock log txn auto_commit nommap
> private" > ${IMAGE_ROOTFS}/etc/rpm/macros.jffs2
> + fi
> +
> ${RPM_POSTPROCESS_COMMANDS}
> ${ROOTFS_POSTPROCESS_COMMAND}
>
> @@ -164,6 +172,7 @@ EOF
> }
>
> remove_packaging_data_files() {
> + rm -rf ${IMAGE_ROOTFS}/etc/rpm/macros.jffs2
> rm -rf ${IMAGE_ROOTFS}${rpmlibdir}
> rm -rf ${IMAGE_ROOTFS}${opkglibdir}
> }
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
next prev parent reply other threads:[~2011-07-12 19:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-01 12:48 Installing GDB or the saga of getting RPM/Zypp to run on JFFS2 Holger Hans Peter Freyther
2011-07-01 13:05 ` Koen Kooi
2011-07-01 13:44 ` Mark Hatle
2011-07-02 21:09 ` Holger Hans Peter Freyther
2011-07-03 12:28 ` Holger Hans Peter Freyther
2011-07-12 19:55 ` Mark Hatle [this message]
2011-07-01 14:18 ` [poky] " Holger Hans Peter Freyther
2011-07-01 14:18 ` Holger Hans Peter Freyther
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=4E1CA696.9010406@windriver.com \
--to=mark.hatle@windriver.com \
--cc=poky@yoctoproject.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.