Remove the micro distro specific overridding of variables
PATCH 1/1 Remove the micro distro specific overridding of variables
1. Remove the *_micro variable overridding;
2. Remove the micro/micro-uclibc specific installation decision, which causes the installation of base-file failed when DISTRO=micro/micro-uclibc.
--- recipes/base-files/base-files_3.0.14.bb | 70 ++++++++++++++----------------- 1 files changed, 31 insertions(+), 39 deletions(-)
recipes/base-files/base-files_3.0.14.bb +31 -39
@@ -46,12 +46,7 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ /media/union /media/realroot /media/hdd \ /media/mmc1" -dirs755_micro = "/dev /proc /sys ${sysconfdir}" -dirs2775_micro = "" -dirs1777_micro = "/tmp" - media = "card cf net ram" -media_micro = "" volatiles = "cache run log lock tmp" conffiles = "${sysconfdir}/debian_version ${sysconfdir}/host.conf \
@@ -93,40 +88,38 @@ do_install () { echo ${hostname} > ${D}${sysconfdir}/hostname fi - if [ "${DISTRO}" != "micro" -a "${DISTRO}" != "micro-uclibc" ]; then - install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} - - if [ -n "${DISTRO_NAME}" ]; then - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net - if [ -n "${DISTRO_VERSION}" ]; then - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net - fi - echo "\n \l" >> ${D}${sysconfdir}/issue - echo >> ${D}${sysconfdir}/issue - echo "%h" >> ${D}${sysconfdir}/issue.net - echo >> ${D}${sysconfdir}/issue.net - else - install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue - install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net - fi + install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} + + if [ -n "${DISTRO_NAME}" ]; then + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net + if [ -n "${DISTRO_VERSION}" ]; then + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net + fi + echo "\n \l" >> ${D}${sysconfdir}/issue + echo >> ${D}${sysconfdir}/issue + echo "%h" >> ${D}${sysconfdir}/issue.net + echo >> ${D}${sysconfdir}/issue.net + else + install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue + install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net + fi + + install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab + install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems + install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd + install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile + install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile + install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc + install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc + install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd + for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3 GFDL-1.2; do + install -m 0644 ${WORKDIR}/licenses/$license ${D}${datadir}/common-licenses/ + done - install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab - install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems - install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd - install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile - install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile - install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc - install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc - install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd - for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3 GFDL-1.2; do - install -m 0644 ${WORKDIR}/licenses/$license ${D}${datadir}/common-licenses/ - done - - ln -sf /proc/mounts ${D}${sysconfdir}/mtab - install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf - fi + ln -sf /proc/mounts ${D}${sysconfdir}/mtab + install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf install -m 0644 ${WORKDIR}/nsswitch.conf ${D}${sysconfdir}/nsswitch.conf }
@@ -168,7 +161,6 @@ PACKAGE_ARCH_rt3000 = "rt3000" PACKAGE_ARCH = "${MACHINE_ARCH}" CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" -CONFFILES_${PN}_micro = "" CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname" CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname"
Signature · 1 line
1.5.4.3
Quoted 3 lines · On Wednesday 30 December 2009 09:15:36 Guo Hongruan wrote:
1. Remove the
*_microvariable overridding;
2. Remove the micro/micro-uclibc specific installation decision, which causes the installation of base-file failed when
Are you sure the initial goal of the check is still met? If so, it would be nice to find this as explanation in the commit message.
thanks
z.
The micro/micro-uclibc specific check does cause the miss of the /etc/default directory, which is required by the following installation. So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.
On my site, the following check did work. I have verified on qemux86, qemuarm and qemumips machine.
I am not sure the goal of this check.
Quoted 15 lines · 在 Wed, 30 Dec 2009 16:30:12 +0800,Holger Hans Peter Freyther…
Quoted 3 lines · On Wednesday 30 December 2009 09:15:36 Guo Hongruan wrote:
1. Remove the
*_microvariable overridding;
2. Remove the micro/micro-uclibc specific installation decision, which causes the installation of base-file failed whenAre you sure the initial goal of the check is still met? If so, it would be nice to find this as explanation in the commit message.
thanks
z._______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
Quoted 9 lines · On Wednesday 30 December 2009 09:36:09 Guo Hongruan wrote:
The micro/micro-uclibc specific check does cause the miss of the
/etc/defaultdirectory, which is required by the following installation. So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.On my site, the following check did work. I have verified on qemux86, qemuarm and qemumips machine.
I am not sure the goal of this check.
I'm not really into this but you seem to just undo the goal. The goal for "micro" is to be as small as possible, so it is trying to reduce the size of every package in a way or another. For base-files it means to install less files.
Now the question we should ask could be:
- Why is what I'm trying to build breaking and how can I fix it without blowing up "micro" to be full featured again.
z.
Quoted 4 lines · Guo Hongruan
The micro/micro-uclibc specific check does cause the miss of the
/etc/defaultdirectory, which is required by the following installation. So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.
Can you give any more details of the problem you are trying to solve? Which exact installation step requires /etc/default?
That directory is indeed not wanted for micro and, per my previous email on this topic, all the commands which install into it ought to be wrapped in a specific check against ${DISTRO}.
Plus, I have recently built for micro-uclibc without seeing this problem so I am a little baffled as to why it would be failing for you.
p.
Quoted 9 lines · 在 Wed, 30 Dec 2009 17:17:17 +0800,Phil Blundell <[email protected]> 写道:
Quoted 4 lines · Guo Hongruan
The micro/micro-uclibc specific check does cause the miss of the
/etc/defaultdirectory, which is required by the following installation. So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.Can you give any more details of the problem you are trying to solve? Which exact installation step requires
/etc/default?
See the following for details:
http://tinderbox.openembedded.net/packages/392296/
http://tinderbox.openembedded.net/packages/391393/
Quoted 15 lines
That directory is indeed not wanted for micro and, per my previous email on this topic, all the commands which install into it ought to be wrapped in a specific check against ${DISTRO}.
Plus, I have recently built for micro-uclibc without seeing this problem so I am a little baffled as to why it would be failing for you.
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
Quoted 12 lines · Guo Hongruan
Quoted 9 lines · 在 Wed, 30 Dec 2009 17:17:17 +0800,Phil Blundell <[email protected]> 写道:
Quoted 4 lines · Guo Hongruan
The micro/micro-uclibc specific check does cause the miss of the
/etc/defaultdirectory, which is required by the following installation. So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.Can you give any more details of the problem you are trying to solve? Which exact installation step requires
/etc/default?
Quoted 5 lines
See the following for details:
http://tinderbox.openembedded.net/packages/392296/
http://tinderbox.openembedded.net/packages/391393/
Ah, I see. So, it would appear that you are actually using "DISTRO=micro-eglibc", rather than the micro and micro-uclibc that you mentioned above.
That DISTRO is not in the org.openembedded.dev tree so I can't test with it but, if you want to stick with that setting, I would guess that you probably need to modify the ${DISTRO} conditional that wraps the relevant lines of the base-files do_install() method so that it recognises micro-eglibc as a synonym for micro.
p.
There are lots of failure buildings due to the problem of base-file packages which I have not enumerated in my previous email.
By the way, I have renamed the micro.conf to micro-eglibc.conf locally, so that I can get to know which type of libc the distribution is using. so the micro-eglibc.conf is just the same as micro.conf in git tree.
Quoted 38 lines · 在 Wed, 30 Dec 2009 17:31:50 +0800,Phil Blundell <[email protected]> 写道:
Quoted 13 lines · Guo Hongruan
Quoted 3 lines · 在 Wed, 30 Dec 2009 17:17:17 +0800,Phil Blundell <[email protected]> 写道:
Quoted 2 lines · Guo Hongruan
The micro/micro-uclibc specific check does cause the miss of the
/etc/defaultdirectory, which is required by the followinginstallation.
Quoted 6 lines
Quoted 2 lines
So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.
Can you give any more details of the problem you are trying to solve? Which exact installation step requires
/etc/default?Quoted 5 lines
See the following for details:
http://tinderbox.openembedded.net/packages/392296/
http://tinderbox.openembedded.net/packages/391393/Ah, I see. So, it would appear that you are actually using "DISTRO=micro-eglibc", rather than the micro and micro-uclibc that you mentioned above.
That DISTRO is not in the org.openembedded.dev tree so I can't test with it but, if you want to stick with that setting, I would guess that you probably need to modify the ${DISTRO} conditional that wraps the relevant lines of the base-files
do_install()method so that it recognises micro-eglibc as a synonym for micro.p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
You can't just rename DISTROs arbitrarily like that since all the overrides will go wrong. I think most or all of your build failures are probably due to your "micro-eglibc" distro being neither one thing or another.
Please try building with DISTRO=micro (and not anything else that you believe to be equivalent) and see if your situation improves.
p.
Quoted 49 lines · Guo Hongruan
There are lots of failure buildings due to the problem of base-file packages which I have not enumerated in my previous email.
By the way, I have renamed the micro.conf to micro-eglibc.conf locally, so that I can get to know which type of libc the distribution is using. so the micro-eglibc.conf is just the same as micro.conf in git tree.
Quoted 38 lines · 在 Wed, 30 Dec 2009 17:31:50 +0800,Phil Blundell <[email protected]> 写道:
Quoted 13 lines · Guo Hongruan
Quoted 3 lines · 在 Wed, 30 Dec 2009 17:17:17 +0800,Phil Blundell <[email protected]> 写道:
Quoted 2 lines · Guo Hongruan
The micro/micro-uclibc specific check does cause the miss of the
/etc/defaultdirectory, which is required by the followinginstallation.
Quoted 6 lines
Quoted 2 lines
So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.
Can you give any more details of the problem you are trying to solve? Which exact installation step requires
/etc/default?Quoted 5 lines
See the following for details:
http://tinderbox.openembedded.net/packages/392296/
http://tinderbox.openembedded.net/packages/391393/Ah, I see. So, it would appear that you are actually using "DISTRO=micro-eglibc", rather than the micro and micro-uclibc that you mentioned above.
That DISTRO is not in the org.openembedded.dev tree so I can't test with it but, if you want to stick with that setting, I would guess that you probably need to modify the ${DISTRO} conditional that wraps the relevant lines of the base-files
do_install()method so that it recognises micro-eglibc as a synonym for micro.p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
I will try it tonight.
Quoted 70 lines · 在 Wed, 30 Dec 2009 18:02:05 +0800,Phil Blundell <[email protected]> 写道:
You can't just rename DISTROs arbitrarily like that since all the overrides will go wrong. I think most or all of your build failures are probably due to your "micro-eglibc" distro being neither one thing or another.
Please try building with DISTRO=micro (and not anything else that you believe to be equivalent) and see if your situation improves.
p.
Quoted 31 lines · Guo Hongruan
There are lots of failure buildings due to the problem of base-file packages which I have not enumerated in my previous email.
By the way, I have renamed the micro.conf to micro-eglibc.conf locally, so that I can get to know which type of libc the distribution is using. so the micro-eglibc.conf is just the same as micro.conf in git tree.
Quoted 2 lines · 在 Wed, 30 Dec 2009 17:31:50 +0800,Phil Blundell <[email protected]> 写道:
Quoted 1 line · Guo Hongruan
在 Wed, 30 Dec 2009 17:17:17 +0800,Phil Blundell <[email protected]>
Quoted 9 lines · 写道:
Quoted 9 lines
Quoted 4 lines · Guo Hongruan
Quoted 2 lines
The micro/micro-uclibc specific check does cause the miss of the
/etc/defaultdirectory, which is required by the followinginstallation.
Quoted 4 lines
Quoted 2 lines
So the installation of base-file failed when DISTRO=micro or DISTRO=micro-uclibc.
Can you give any more details of the problem you are trying to
solve?
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines
Which exact installation step requires
/etc/default?See the following for details:
http://tinderbox.openembedded.net/packages/392296/
http://tinderbox.openembedded.net/packages/391393/Quoted 21 lines
Quoted 5 lines
Ah, I see. So, it would appear that you are actually using "DISTRO=micro-eglibc", rather than the micro and micro-uclibc that you mentioned above.
That DISTRO is not in the org.openembedded.dev tree so I can't test
with
Quoted 13 lines
it but, if you want to stick with that setting, I would guess that you probably need to modify the ${DISTRO} conditional that wraps the relevant lines of the base-files
do_install()method so that it recognises micro-eglibc as a synonym for micro.p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
This patch is wrong. If you make this change then base-files will gain a whole load of files which are not wanted for micro.
p.
Quoted 103 lines · Guo Hongruan
1. Remove the
*_microvariable overridding;
2. Remove the micro/micro-uclibc specific installation decision, which causes the installation of base-file failed when DISTRO=micro/micro-uclibc.--- recipes/base-files/base-files_3.0.14.bb | 70 ++++++++++++++----------------- 1 files changed, 31 insertions(+), 39 deletions(-)recipes/base-files/base-files_3.0.14.bb +31
-39@@ -46,12 +46,7 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ /media/union /media/realroot /media/hdd \ /media/mmc1" -dirs755_micro = "/dev /proc /sys ${sysconfdir}" -dirs2775_micro = "" -dirs1777_micro = "/tmp" - media = "card cf net ram" -media_micro = "" volatiles = "cache run log lock tmp" conffiles = "${sysconfdir}/debian_version ${sysconfdir}/host.conf \@@ -93,40 +88,38 @@ do_install () { echo ${hostname} > ${D}${sysconfdir}/hostname fi - if [ "${DISTRO}" != "micro" -a "${DISTRO}" != "micro-uclibc" ]; then - install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} - - if [ -n "${DISTRO_NAME}" ]; then - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net - if [ -n "${DISTRO_VERSION}" ]; then - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net - fi - echo "\n \l" >> ${D}${sysconfdir}/issue - echo >> ${D}${sysconfdir}/issue - echo "%h" >> ${D}${sysconfdir}/issue.net - echo >> ${D}${sysconfdir}/issue.net - else - install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue - install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net - fi + install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} + + if [ -n "${DISTRO_NAME}" ]; then + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net + if [ -n "${DISTRO_VERSION}" ]; then + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net + fi + echo "\n \l" >> ${D}${sysconfdir}/issue + echo >> ${D}${sysconfdir}/issue + echo "%h" >> ${D}${sysconfdir}/issue.net + echo >> ${D}${sysconfdir}/issue.net + else + install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue + install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net + fi + + install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab + install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems + install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd + install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile + install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile + install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc + install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc + install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd + for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3 GFDL-1.2; do + install -m 0644 ${WORKDIR}/licenses/$license ${D}${datadir}/common-licenses/ + done - install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab - install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems - install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd - install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile - install -m 0755 ${WORKDIR}/share/dot.profile ${D}${sysconfdir}/skel/.profile - install -m 0755 ${WORKDIR}/share/dot.bashrc ${D}${sysconfdir}/skel/.bashrc - install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc - install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd - for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3 GFDL-1.2; do - install -m 0644 ${WORKDIR}/licenses/$license ${D}${datadir}/common-licenses/ - done - - ln -sf /proc/mounts ${D}${sysconfdir}/mtab - install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf - fi + ln -sf /proc/mounts ${D}${sysconfdir}/mtab + install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf install -m 0644 ${WORKDIR}/nsswitch.conf ${D}${sysconfdir}/nsswitch.conf }@@ -168,7 +161,6 @@ PACKAGE_ARCH_rt3000 = "rt3000" PACKAGE_ARCH = "${MACHINE_ARCH}" CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" -CONFFILES_${PN}_micro = "" CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname" CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf ${sysconfdir}/fstab ${sysconfdir}/hostname"
I searched the whole openembedded directory and found the following references of micro as DISTRO overriding. recipes/base-passwd/base-passwd_3.5.20.bb:do_install_micro () { recipes/sysvinit/sysvinit_2.86.bb:RRECOMMENDS_${PN}_micro = ""
Through the above references, I can say that the initial motion of using micro as overriding is trying to keep the image as small as possible. To achieve the goal, the initial author added the check/overriding of micro/micro-uclibc. But how many space will be saved by just no installing the several plain text files? I think the basic unit of installation should be package not file. To keep the image small, we should control the packages installed.
If someone realy does not want to install some files in base-file/base-passwd/sysvinit to keep the image smaller, they can rewrites the corresponding recipes and put them into their private bb file collection.
Quoted 135 lines · 在 Wed, 30 Dec 2009 17:13:16 +0800,Phil Blundell <[email protected]> 写道:
This patch is wrong. If you make this change then base-files will gain a whole load of files which are not wanted for micro.
p.
Quoted 118 lines · Guo Hongruan
1. Remove the
*_microvariable overridding;
2. Remove the micro/micro-uclibc specific installation decision, which causes the installation of base-file failed when DISTRO=micro/micro-uclibc.--- recipes/base-files/base-files_3.0.14.bb | 70 ++++++++++++++----------------- 1 files changed, 31 insertions(+), 39 deletions(-)recipes/base-files/base-files_3.0.14.bb +0
-5@@ -46,12 +46,7 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ /media/union /media/realroot /media/hdd \ /media/mmc1" -dirs755_micro = "/dev /proc /sys ${sysconfdir}" -dirs2775_micro = "" -dirs1777_micro = "/tmp" - media = "card cf net ram" -media_micro = "" volatiles = "cache run log lock tmp"conffiles = "${sysconfdir}/debian_version
${sysconfdir}/host.conf\recipes/base-files/base-files_3.0.14.bb +0
-1@@ -93,40 +88,38 @@ do_install () { echo ${hostname} > ${D}${sysconfdir}/hostname fi - if [ "${DISTRO}" != "micro" -a "${DISTRO}" != "micro-uclibc"]; then
recipes/base-files/base-files_3.0.14.bb +0
-15- install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} - - if [ -n "${DISTRO_NAME}" ]; then - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net - if [ -n "${DISTRO_VERSION}" ]; then - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net - fi - echo "\n \l" >> ${D}${sysconfdir}/issue - echo >> ${D}${sysconfdir}/issue - echo "%h" >> ${D}${sysconfdir}/issue.net - echo >> ${D}${sysconfdir}/issue.net - else - install -m 0644 ${WORKDIR}/issue${D}${sysconfdir}/issue
- install -m 0644 ${WORKDIR}/issue.net
${D}${sysconfdir}/issue.netrecipes/base-files/base-files_3.0.14.bb +23
-1- fi + install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} + + if [ -n "${DISTRO_NAME}" ]; then + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net + if [ -n "${DISTRO_VERSION}" ]; then + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net + fi + echo "\n \l" >> ${D}${sysconfdir}/issue + echo >> ${D}${sysconfdir}/issue + echo "%h" >> ${D}${sysconfdir}/issue.net + echo >> ${D}${sysconfdir}/issue.net + else + install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue + install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net + fi + + install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab + install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems + install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd + install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile + install -m 0755 ${WORKDIR}/share/dot.profile${D}${sysconfdir}/skel/.profile
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0755 ${WORKDIR}/share/dot.bashrc${D}${sysconfdir}/skel/.bashrc
recipes/base-files/base-files_3.0.14.bb +3
-0+ install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc + install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd + for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +1
-1+ done - install -m 0644 ${WORKDIR}/fstab${D}${sysconfdir}/fstab
- install -m 0644 ${WORKDIR}/filesystems
${D}${sysconfdir}/filesystemsrecipes/base-files/base-files_3.0.14.bb +0
-3- install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd - install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile - install -m 0755 ${WORKDIR}/share/dot.profile${D}${sysconfdir}/skel/.profile
- install -m 0755 ${WORKDIR}/share/dot.bashrc
${D}${sysconfdir}/skel/.bashrcrecipes/base-files/base-files_3.0.14.bb +0
-3- install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc - install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd - for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3LGPL-3 GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +0
-1- install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +0
-4- done - - ln -sf /proc/mounts ${D}${sysconfdir}/mtab - install -m 0644 ${WORKDIR}/host.conf
${D}${sysconfdir}/host.confrecipes/base-files/base-files_3.0.14.bb +2
-1- fi + ln -sf /proc/mounts ${D}${sysconfdir}/mtab + install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf install -m 0644 ${WORKDIR}/nsswitch.conf
${D}${sysconfdir}/nsswitch.conf
}recipes/base-files/base-files_3.0.14.bb +0
-1@@ -168,7 +161,6 @@ PACKAGE_ARCH_rt3000 = "rt3000" PACKAGE_ARCH = "${MACHINE_ARCH}" CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" -CONFFILES_${PN}_micro = "" CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf ${sysconfdir}/fstabQuoted 4 lines
${sysconfdir}/hostname"
CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf
${sysconfdir}/fstab ${sysconfdir}/hostname"_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
It sounds to me as though micro is simply not the right DISTRO for your purposes. If you want to use eglibc, and you want the packages to contain the full complement of files, you might be better off with minimal.
p.
Quoted 160 lines · Guo Hongruan
I searched the whole openembedded directory and found the following references of micro as DISTRO overriding. recipes/base-passwd/base-passwd_3.5.20.bb:do_install_micro () { recipes/sysvinit/sysvinit_2.86.bb:RRECOMMENDS_${PN}_micro = ""
Through the above references, I can say that the initial motion of using micro as overriding is trying to keep the image as small as possible. To achieve the goal, the initial author added the check/overriding of micro/micro-uclibc. But how many space will be saved by just no installing the several plain text files? I think the basic unit of installation should be package not file. To keep the image small, we should control the packages installed.
If someone realy does not want to install some files in base-file/base-passwd/sysvinit to keep the image smaller, they can rewrites the corresponding recipes and put them into their private bb file collection.
Quoted 138 lines · 在 Wed, 30 Dec 2009 17:13:16 +0800,Phil Blundell <[email protected]> 写道:
This patch is wrong. If you make this change then base-files will gain a whole load of files which are not wanted for micro.
p.
Quoted 121 lines · Guo Hongruan
1. Remove the
*_microvariable overridding;
2. Remove the micro/micro-uclibc specific installation decision, which causes the installation of base-file failed when DISTRO=micro/micro-uclibc.--- recipes/base-files/base-files_3.0.14.bb | 70 ++++++++++++++----------------- 1 files changed, 31 insertions(+), 39 deletions(-)recipes/base-files/base-files_3.0.14.bb +0
-5@@ -46,12 +46,7 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ /media/union /media/realroot /media/hdd \ /media/mmc1" -dirs755_micro = "/dev /proc /sys ${sysconfdir}" -dirs2775_micro = "" -dirs1777_micro = "/tmp" - media = "card cf net ram" -media_micro = "" volatiles = "cache run log lock tmp"conffiles = "${sysconfdir}/debian_version
${sysconfdir}/host.conf\recipes/base-files/base-files_3.0.14.bb +0
-1@@ -93,40 +88,38 @@ do_install () { echo ${hostname} > ${D}${sysconfdir}/hostname fi - if [ "${DISTRO}" != "micro" -a "${DISTRO}" != "micro-uclibc"]; then
recipes/base-files/base-files_3.0.14.bb +0
-15- install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} - - if [ -n "${DISTRO_NAME}" ]; then - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net - if [ -n "${DISTRO_VERSION}" ]; then - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net - fi - echo "\n \l" >> ${D}${sysconfdir}/issue - echo >> ${D}${sysconfdir}/issue - echo "%h" >> ${D}${sysconfdir}/issue.net - echo >> ${D}${sysconfdir}/issue.net - else - install -m 0644 ${WORKDIR}/issue${D}${sysconfdir}/issue
- install -m 0644 ${WORKDIR}/issue.net
${D}${sysconfdir}/issue.netrecipes/base-files/base-files_3.0.14.bb +23
-1- fi + install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} + + if [ -n "${DISTRO_NAME}" ]; then + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net + if [ -n "${DISTRO_VERSION}" ]; then + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net + fi + echo "\n \l" >> ${D}${sysconfdir}/issue + echo >> ${D}${sysconfdir}/issue + echo "%h" >> ${D}${sysconfdir}/issue.net + echo >> ${D}${sysconfdir}/issue.net + else + install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue + install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net + fi + + install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab + install -m 0644 ${WORKDIR}/filesystems ${D}${sysconfdir}/filesystems + install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd + install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile + install -m 0755 ${WORKDIR}/share/dot.profile${D}${sysconfdir}/skel/.profile
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0755 ${WORKDIR}/share/dot.bashrc${D}${sysconfdir}/skel/.bashrc
recipes/base-files/base-files_3.0.14.bb +3
-0+ install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc + install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd + for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +1
-1+ done - install -m 0644 ${WORKDIR}/fstab${D}${sysconfdir}/fstab
- install -m 0644 ${WORKDIR}/filesystems
${D}${sysconfdir}/filesystemsrecipes/base-files/base-files_3.0.14.bb +0
-3- install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd - install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile - install -m 0755 ${WORKDIR}/share/dot.profile${D}${sysconfdir}/skel/.profile
- install -m 0755 ${WORKDIR}/share/dot.bashrc
${D}${sysconfdir}/skel/.bashrcrecipes/base-files/base-files_3.0.14.bb +0
-3- install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc - install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd - for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3LGPL-3 GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +0
-1- install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +0
-4- done - - ln -sf /proc/mounts ${D}${sysconfdir}/mtab - install -m 0644 ${WORKDIR}/host.conf
${D}${sysconfdir}/host.confrecipes/base-files/base-files_3.0.14.bb +2
-1- fi + ln -sf /proc/mounts ${D}${sysconfdir}/mtab + install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf install -m 0644 ${WORKDIR}/nsswitch.conf
${D}${sysconfdir}/nsswitch.conf
}recipes/base-files/base-files_3.0.14.bb +0
-1@@ -168,7 +161,6 @@ PACKAGE_ARCH_rt3000 = "rt3000" PACKAGE_ARCH = "${MACHINE_ARCH}" CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" -CONFFILES_${PN}_micro = "" CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf ${sysconfdir}/fstabQuoted 4 lines
${sysconfdir}/hostname"
CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf
${sysconfdir}/fstab ${sysconfdir}/hostname"_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
I just want to test openembedded with all possible combinations and to make openembedded better. ;)
Quoted 182 lines · 在 Wed, 30 Dec 2009 19:24:14 +0800,Phil Blundell <[email protected]> 写道:
It sounds to me as though micro is simply not the right DISTRO for your purposes. If you want to use eglibc, and you want the packages to contain the full complement of files, you might be better off with minimal.
p.
Quoted 151 lines · Guo Hongruan
I searched the whole openembedded directory and found the following references of micro as DISTRO overriding. recipes/base-passwd/base-passwd_3.5.20.bb:do_install_micro () { recipes/sysvinit/sysvinit_2.86.bb:RRECOMMENDS_${PN}_micro = ""
Through the above references, I can say that the initial motion of using micro as overriding is trying to keep the image as small as possible. To achieve the goal, the initial author added the check/overriding of micro/micro-uclibc. But how many space will be saved by just no installing the several plain text files? I think the basic unit of installation should be package not file. To keep the image small, we should control the packages installed.
If someone realy does not want to install some files in base-file/base-passwd/sysvinit to keep the image smaller, they can rewrites the corresponding recipes and put them into their private bb file collection.
Quoted 1 line · 在 Wed, 30 Dec 2009 17:13:16 +0800,Phil Blundell <[email protected]> 写道:
This patch is wrong. If you make this change then base-files will
gain
Quoted 7 lines
a whole load of files which are not wanted for micro.
p.
Quoted 2 lines · Guo Hongruan
1. Remove the
*_microvariable overridding;
2. Remove the micro/micro-uclibc specific installation decision,which
Quoted 30 lines
Quoted 30 lines
causes the installation of base-file failed when
DISTRO=micro/micro-uclibc.--- recipes/base-files/base-files_3.0.14.bb | 70 ++++++++++++++----------------- 1 files changed, 31 insertions(+), 39 deletions(-)recipes/base-files/base-files_3.0.14.bb +0
-5@@ -46,12 +46,7 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ /media/union /media/realroot /media/hdd \ /media/mmc1" -dirs755_micro = "/dev /proc /sys ${sysconfdir}" -dirs2775_micro = "" -dirs1777_micro = "/tmp" - media = "card cf net ram" -media_micro = "" volatiles = "cache run log lock tmp"conffiles = "${sysconfdir}/debian_version
${sysconfdir}/host.conf\recipes/base-files/base-files_3.0.14.bb +0
-0@@ -93,40 +88,38 @@ do_install () { echo ${hostname} > ${D}${sysconfdir}/hostname fiQuoted 10 lines
recipes/base-files/base-files_3.0.14.bb do_install () {
Quoted 10 lines
recipes/base-files/base-files_3.0.14.bb +0
-1- if [ "${DISTRO}" != "micro" -a "${DISTRO}" != "micro-uclibc"]; then
recipes/base-files/base-files_3.0.14.bb +0
-8- install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} - - if [ -n "${DISTRO_NAME}" ]; then - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net - if [ -n "${DISTRO_VERSION}" ]; then - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_VERSION} " >>${D}${sysconfdir}/issue.net
Quoted 23 lines
Quoted 23 lines
recipes/base-files/base-files_3.0.14.bb +0
-7- fi - echo "\n \l" >> ${D}${sysconfdir}/issue - echo >> ${D}${sysconfdir}/issue - echo "%h" >> ${D}${sysconfdir}/issue.net - echo >> ${D}${sysconfdir}/issue.net - else - install -m 0644 ${WORKDIR}/issue${D}${sysconfdir}/issue
- install -m 0644 ${WORKDIR}/issue.net
${D}${sysconfdir}/issue.netrecipes/base-files/base-files_3.0.14.bb +12
-1- fi + install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} + + if [ -n "${DISTRO_NAME}" ]; then + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net + if [ -n "${DISTRO_VERSION}" ]; then + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net + fi + echo "\n \l" >> ${D}${sysconfdir}/issue + echo >> ${D}${sysconfdir}/issue + echo "%h" >> ${D}${sysconfdir}/issue.netQuoted 8 lines
recipes/base-files/base-files_3.0.14.bb do_install () {
Quoted 8 lines
recipes/base-files/base-files_3.0.14.bb +8
-0+ echo >> ${D}${sysconfdir}/issue.net + else + install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue + install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net + fi + + install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab + install -m 0644 ${WORKDIR}/filesystems${D}${sysconfdir}/filesystems
Quoted 14 lines
Quoted 14 lines
recipes/base-files/base-files_3.0.14.bb +3
-0+ install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd + install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile + install -m 0755 ${WORKDIR}/share/dot.profile${D}${sysconfdir}/skel/.profile
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0755 ${WORKDIR}/share/dot.bashrc${D}${sysconfdir}/skel/.bashrc
recipes/base-files/base-files_3.0.14.bb +3
-0+ install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc + install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd + for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +1
-0+ doneQuoted 5 lines
Quoted 5 lines
- install -m 0644 ${WORKDIR}/fstab
${D}${sysconfdir}/fstab
- install -m 0644 ${WORKDIR}/filesystems
${D}${sysconfdir}/filesystems
- install -m 0644 ${WORKDIR}/usbd${D}${sysconfdir}/default/usbd
Quoted 1 line
Quoted 1 line
- install -m 0644 ${WORKDIR}/profile
${D}${sysconfdir}/profile
Quoted 5 lines
Quoted 5 lines
- install -m 0755 ${WORKDIR}/share/dot.profile
${D}${sysconfdir}/skel/.profile
- install -m 0755 ${WORKDIR}/share/dot.bashrc
${D}${sysconfdir}/skel/.bashrc
- install -m 0644 ${WORKDIR}/inputrc${D}${sysconfdir}/inputrc
Quoted 20 lines
Quoted 20 lines
recipes/base-files/base-files_3.0.14.bb +0
-2- install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd - for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3LGPL-3 GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +0
-1- install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +0
-4- done - - ln -sf /proc/mounts ${D}${sysconfdir}/mtab - install -m 0644 ${WORKDIR}/host.conf
${D}${sysconfdir}/host.confrecipes/base-files/base-files_3.0.14.bb +2
-1- fi + ln -sf /proc/mounts ${D}${sysconfdir}/mtab + install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf install -m 0644 ${WORKDIR}/nsswitch.conf
${D}${sysconfdir}/nsswitch.conf
}recipes/base-files/base-files_3.0.14.bb +0
-0@@ -168,7 +161,6 @@ PACKAGE_ARCH_rt3000 = "rt3000" PACKAGE_ARCH = "${MACHINE_ARCH}"Quoted 17 lines
Quoted 3 lines
recipes/base-files/base-files_3.0.14.bb PACKAGE_ARCH_rt3000 = "rt3000"
Quoted 3 lines
recipes/base-files/base-files_3.0.14.bb +0
-1CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" -CONFFILES_${PN}_micro = "" CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf${sysconfdir}/fstab
Quoted 11 lines
Quoted 4 lines
${sysconfdir}/hostname"
CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf
${sysconfdir}/fstab ${sysconfdir}/hostname"_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 4 lines
Guo Hongruan, Embedded Linux Consultant Skype: camelguo Twitter: camelguo http://www.gulessoft.com
That is a worthy goal and one that I certainly support. But, if testing is your primary focus, I would encourage you to test with an unmodified tree rather than one that contains local changes. Otherwise it can be difficult to distinguish between true bugs in the main OE tree and issues which have been introduced by your local modifications.
p.
Quoted 192 lines · Guo Hongruan
I just want to test openembedded with all possible combinations and to make openembedded better. ;)
Quoted 185 lines · 在 Wed, 30 Dec 2009 19:24:14 +0800,Phil Blundell <[email protected]> 写道:
It sounds to me as though micro is simply not the right DISTRO for your purposes. If you want to use eglibc, and you want the packages to contain the full complement of files, you might be better off with minimal.
p.
Quoted 154 lines · Guo Hongruan
I searched the whole openembedded directory and found the following references of micro as DISTRO overriding. recipes/base-passwd/base-passwd_3.5.20.bb:do_install_micro () { recipes/sysvinit/sysvinit_2.86.bb:RRECOMMENDS_${PN}_micro = ""
Through the above references, I can say that the initial motion of using micro as overriding is trying to keep the image as small as possible. To achieve the goal, the initial author added the check/overriding of micro/micro-uclibc. But how many space will be saved by just no installing
the several plain text files? I think the basic unit of installation should be package not file. To keep the image small, we should control the
packages installed.If someone realy does not want to install some files in base-file/base-passwd/sysvinit to keep the image smaller, they can rewrites the corresponding recipes and put them into their private bb file
collection.Quoted 1 line · 在 Wed, 30 Dec 2009 17:13:16 +0800,Phil Blundell <[email protected]> 写道:
This patch is wrong. If you make this change then base-files will
gain
Quoted 7 lines
a whole load of files which are not wanted for micro.
p.
Quoted 2 lines · Guo Hongruan
1. Remove the
*_microvariable overridding;
2. Remove the micro/micro-uclibc specific installation decision,which
Quoted 30 lines
Quoted 30 lines
causes the installation of base-file failed when
DISTRO=micro/micro-uclibc.--- recipes/base-files/base-files_3.0.14.bb | 70 ++++++++++++++----------------- 1 files changed, 31 insertions(+), 39 deletions(-)recipes/base-files/base-files_3.0.14.bb +0
-5@@ -46,12 +46,7 @@ dirs755 = "/bin /boot /dev ${sysconfdir} ${sysconfdir}/default \ /media/union /media/realroot /media/hdd \ /media/mmc1" -dirs755_micro = "/dev /proc /sys ${sysconfdir}" -dirs2775_micro = "" -dirs1777_micro = "/tmp" - media = "card cf net ram" -media_micro = "" volatiles = "cache run log lock tmp"conffiles = "${sysconfdir}/debian_version
${sysconfdir}/host.conf\recipes/base-files/base-files_3.0.14.bb +0
-0@@ -93,40 +88,38 @@ do_install () { echo ${hostname} > ${D}${sysconfdir}/hostname fiQuoted 10 lines
recipes/base-files/base-files_3.0.14.bb do_install () {
Quoted 10 lines
recipes/base-files/base-files_3.0.14.bb +0
-1- if [ "${DISTRO}" != "micro" -a "${DISTRO}" != "micro-uclibc"]; then
recipes/base-files/base-files_3.0.14.bb +0
-8- install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} - - if [ -n "${DISTRO_NAME}" ]; then - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net - if [ -n "${DISTRO_VERSION}" ]; then - echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue - echo -n "${DISTRO_VERSION} " >>${D}${sysconfdir}/issue.net
Quoted 23 lines
Quoted 23 lines
recipes/base-files/base-files_3.0.14.bb +0
-7- fi - echo "\n \l" >> ${D}${sysconfdir}/issue - echo >> ${D}${sysconfdir}/issue - echo "%h" >> ${D}${sysconfdir}/issue.net - echo >> ${D}${sysconfdir}/issue.net - else - install -m 0644 ${WORKDIR}/issue${D}${sysconfdir}/issue
- install -m 0644 ${WORKDIR}/issue.net
${D}${sysconfdir}/issue.netrecipes/base-files/base-files_3.0.14.bb +12
-1- fi + install -m 644 ${WORKDIR}/issue* ${D}${sysconfdir} + + if [ -n "${DISTRO_NAME}" ]; then + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_NAME} " >> ${D}${sysconfdir}/issue.net + if [ -n "${DISTRO_VERSION}" ]; then + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue + echo -n "${DISTRO_VERSION} " >> ${D}${sysconfdir}/issue.net + fi + echo "\n \l" >> ${D}${sysconfdir}/issue + echo >> ${D}${sysconfdir}/issue + echo "%h" >> ${D}${sysconfdir}/issue.netQuoted 8 lines
recipes/base-files/base-files_3.0.14.bb do_install () {
Quoted 8 lines
recipes/base-files/base-files_3.0.14.bb +8
-0+ echo >> ${D}${sysconfdir}/issue.net + else + install -m 0644 ${WORKDIR}/issue ${D}${sysconfdir}/issue + install -m 0644 ${WORKDIR}/issue.net ${D}${sysconfdir}/issue.net + fi + + install -m 0644 ${WORKDIR}/fstab ${D}${sysconfdir}/fstab + install -m 0644 ${WORKDIR}/filesystems${D}${sysconfdir}/filesystems
Quoted 14 lines
Quoted 14 lines
recipes/base-files/base-files_3.0.14.bb +3
-0+ install -m 0644 ${WORKDIR}/usbd ${D}${sysconfdir}/default/usbd + install -m 0644 ${WORKDIR}/profile ${D}${sysconfdir}/profile + install -m 0755 ${WORKDIR}/share/dot.profile${D}${sysconfdir}/skel/.profile
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0755 ${WORKDIR}/share/dot.bashrc${D}${sysconfdir}/skel/.bashrc
recipes/base-files/base-files_3.0.14.bb +3
-0+ install -m 0644 ${WORKDIR}/inputrc ${D}${sysconfdir}/inputrc + install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd + for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3 LGPL-3GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +1
-0+ install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +1
-0+ doneQuoted 5 lines
Quoted 5 lines
- install -m 0644 ${WORKDIR}/fstab
${D}${sysconfdir}/fstab
- install -m 0644 ${WORKDIR}/filesystems
${D}${sysconfdir}/filesystems
- install -m 0644 ${WORKDIR}/usbd${D}${sysconfdir}/default/usbd
Quoted 1 line
Quoted 1 line
- install -m 0644 ${WORKDIR}/profile
${D}${sysconfdir}/profile
Quoted 5 lines
Quoted 5 lines
- install -m 0755 ${WORKDIR}/share/dot.profile
${D}${sysconfdir}/skel/.profile
- install -m 0755 ${WORKDIR}/share/dot.bashrc
${D}${sysconfdir}/skel/.bashrc
- install -m 0644 ${WORKDIR}/inputrc${D}${sysconfdir}/inputrc
Quoted 20 lines
Quoted 20 lines
recipes/base-files/base-files_3.0.14.bb +0
-2- install -m 0644 ${WORKDIR}/motd ${D}${sysconfdir}/motd - for license in BSD GPL-2 LGPL-2 LGPL-2.1 Artistic GPL-3LGPL-3 GFDL-1.2; do
recipes/base-files/base-files_3.0.14.bb +0
-1- install -m 0644 ${WORKDIR}/licenses/$license${D}${datadir}/common-licenses/
recipes/base-files/base-files_3.0.14.bb +0
-4- done - - ln -sf /proc/mounts ${D}${sysconfdir}/mtab - install -m 0644 ${WORKDIR}/host.conf
${D}${sysconfdir}/host.confrecipes/base-files/base-files_3.0.14.bb +2
-1- fi + ln -sf /proc/mounts ${D}${sysconfdir}/mtab + install -m 0644 ${WORKDIR}/host.conf ${D}${sysconfdir}/host.conf install -m 0644 ${WORKDIR}/nsswitch.conf
${D}${sysconfdir}/nsswitch.conf
}recipes/base-files/base-files_3.0.14.bb +0
-0@@ -168,7 +161,6 @@ PACKAGE_ARCH_rt3000 = "rt3000" PACKAGE_ARCH = "${MACHINE_ARCH}"Quoted 17 lines
Quoted 3 lines
recipes/base-files/base-files_3.0.14.bb PACKAGE_ARCH_rt3000 = "rt3000"
Quoted 3 lines
recipes/base-files/base-files_3.0.14.bb +0
-1CONFFILES_${PN} = "${sysconfdir}/fstab ${sysconfdir}/hostname" -CONFFILES_${PN}_micro = "" CONFFILES_${PN}_nylon = "${sysconfdir}/resolv.conf${sysconfdir}/fstab
Quoted 11 lines
Quoted 4 lines
${sysconfdir}/hostname"
CONFFILES_${PN}_slugos = "${sysconfdir}/resolv.conf
${sysconfdir}/fstab ${sysconfdir}/hostname"_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel