* [Buildroot] using linux 2.4 headers
@ 2009-03-24 22:40 Tobias McNulty
2009-03-24 22:56 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Tobias McNulty @ 2009-03-24 22:40 UTC (permalink / raw)
To: buildroot
I just downloaded the latest version of buildroot and managed to build a
very small file system that includes python and sqlite (exactly what I'm
looking for!) in no time at all. Very impressed, thanks for all your
hard work everyone!
Now, pardon my ignorance, but is there a way to make buildroot use linux
2.4 headers instead of the default 2.6? I only have 2 options when I go
to select the kernel headers, and they're both fairly recent iterations
of the 2.6 kernel.
I see that ?Clibc supports 2.4 or greater, but I don't see any mention
of 2.4 in the buildroot docs.
The file system I'm trying to build is for a TS-7400 (arm) and the 2.6
kernel support doesn't seem that great unfortunately.
Thanks
Tobias
--
Tobias McNulty
Caktus Consulting Group, LLC
P.O. Box 1454
Carrboro, NC 27510
(919) 951-0052
http://www.caktusgroup.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers
2009-03-24 22:40 [Buildroot] using linux 2.4 headers Tobias McNulty
@ 2009-03-24 22:56 ` Peter Korsgaard
2009-03-25 3:57 ` [Buildroot] using linux 2.4 headers AND python Tobias McNulty
0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2009-03-24 22:56 UTC (permalink / raw)
To: buildroot
>>>>> "Tobias" == Tobias McNulty <tobias@caktusgroup.com> writes:
Hi,
Tobias> I just downloaded the latest version of buildroot and managed
Tobias> to build a very small file system that includes python and
Tobias> sqlite (exactly what I'm looking for!) in no time at all.
Tobias> Very impressed, thanks for all your hard work everyone!
Thanks.
Tobias> Now, pardon my ignorance, but is there a way to make
Tobias> buildroot use linux 2.4 headers instead of the default 2.6?
Tobias> I only have 2 options when I go to select the kernel headers,
Tobias> and they're both fairly recent iterations of the 2.6 kernel.
The 2009.02 release had support for 2.4.41 if you go to build
options->Show packages that are deprecated or obsolete, but we have
removed it from subversion after the release.
Notice though that there aren't many people using the 2.4 support, so
something might not work ..
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers AND python
2009-03-24 22:56 ` Peter Korsgaard
@ 2009-03-25 3:57 ` Tobias McNulty
2009-03-25 15:35 ` Tobias McNulty
0 siblings, 1 reply; 9+ messages in thread
From: Tobias McNulty @ 2009-03-25 3:57 UTC (permalink / raw)
To: buildroot
Peter Korsgaard wrote:
> The 2009.02 release had support for 2.4.41 if you go to build
> options->Show packages that are deprecated or obsolete, but we have
> removed it from subversion after the release.
>
> Notice though that there aren't many people using the 2.4 support, so
> something might not work ..
Thanks that seemed to work. I had to add some typedefs for __u32 and
__u8 to watchdog.h but otherwise it built fine. There is probably a
smarter fix.
Upon further investigation Python doesn't seem to be complete though:
$ python -v
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
'import site' failed; traceback:
ImportError: No module named site
Python 2.4.5 (#1, Mar 24 2009, 23:15:27)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: No module named os
>>>
and, sure enough, I don't see os.py anywhere on the filesystem. I have
not looked at the python build output yet but I'll do that tomorrow when
I'm more awake.
(It was also this way before the rebuild, the switch to 2.4 did not
introduce the problem.)
Toby
--
Tobias McNulty
Caktus Consulting Group, LLC
P.O. Box 1454
Carrboro, NC 27510
(919) 951-0052
http://www.caktusgroup.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers AND python
2009-03-25 3:57 ` [Buildroot] using linux 2.4 headers AND python Tobias McNulty
@ 2009-03-25 15:35 ` Tobias McNulty
2009-03-25 23:26 ` Hamish Moffatt
0 siblings, 1 reply; 9+ messages in thread
From: Tobias McNulty @ 2009-03-25 15:35 UTC (permalink / raw)
To: buildroot
Tobias McNulty wrote:
> Upon further investigation Python doesn't seem to be complete though:
>
> $ python -v
> Could not find platform independent libraries <prefix>
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
> # installing zipimport hook
> import zipimport # builtin
> # installed zipimport hook
> 'import site' failed; traceback:
> ImportError: No module named site
> Python 2.4.5 (#1, Mar 24 2009, 23:15:27)
> [GCC 4.3.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import os
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: No module named os
>
> and, sure enough, I don't see os.py anywhere on the filesystem. I have
> not looked at the python build output yet but I'll do that tomorrow when
> I'm more awake.
Sure enough, the installer is installing all the .py files and then
removing them again. It appears the line at fault is the last one in
the following section of python.mk
ifneq ($(BR2_PACKAGE_PYTHON_DEV),y)
rm -rf $(TARGET_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
rm -rf
$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/config
find $(TARGET_DIR)/usr/lib/ -name '*.py' -exec rm {} \;
endif
Is that line really supposed to be there?
BR2_PACKAGE_PYTHON_DEV says:
"If enabled, development files (headers and static libpython) will be
installed on the target. "
It seems to me, if you have this disabled, you still might want the
basic python library installed on the target (especially if you set
BR2_PACKAGE_PYTHON_PY_ONLY=y)!
Maybe I'm missing something?
Thanks
Tobias
--
Tobias McNulty
Caktus Consulting Group, LLC
P.O. Box 1454
Carrboro, NC 27510
(919) 951-0052
http://www.caktusgroup.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers AND python
2009-03-25 15:35 ` Tobias McNulty
@ 2009-03-25 23:26 ` Hamish Moffatt
2009-03-26 0:27 ` Tobias McNulty
2009-03-26 6:57 ` Peter Korsgaard
0 siblings, 2 replies; 9+ messages in thread
From: Hamish Moffatt @ 2009-03-25 23:26 UTC (permalink / raw)
To: buildroot
On Wed, Mar 25, 2009 at 11:35:46AM -0400, Tobias McNulty wrote:
> Tobias McNulty wrote:
> > and, sure enough, I don't see os.py anywhere on the filesystem. I have
> > not looked at the python build output yet but I'll do that tomorrow when
> > I'm more awake.
>
> Sure enough, the installer is installing all the .py files and then
> removing them again. It appears the line at fault is the last one in
> the following section of python.mk
>
> ifneq ($(BR2_PACKAGE_PYTHON_DEV),y)
> rm -rf $(TARGET_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)
> rm -rf
> $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/config
> find $(TARGET_DIR)/usr/lib/ -name '*.py' -exec rm {} \;
> endif
>
> Is that line really supposed to be there?
No it isn't, but you should also have the .pyc file (unless you have set
BR2_PACKAGE_PYTHON_PY_ONLY) so 'import os' will still work. You might
want to build python with logging and post the log here, ie
make python-dirclean python 2>&1 > pybuild.log
'svn blame' suggests this is my mistake. I use ..._PYC_ONLY so I didn't
notice.
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers AND python
2009-03-25 23:26 ` Hamish Moffatt
@ 2009-03-26 0:27 ` Tobias McNulty
2009-03-26 6:57 ` Peter Korsgaard
1 sibling, 0 replies; 9+ messages in thread
From: Tobias McNulty @ 2009-03-26 0:27 UTC (permalink / raw)
To: buildroot
Hamish Moffatt wrote:
>> Is that line really supposed to be there?
>
> No it isn't, but you should also have the .pyc file (unless you have set
> BR2_PACKAGE_PYTHON_PY_ONLY) so 'import os' will still work. You might
> want to build python with logging and post the log here, ie
>
> make python-dirclean python 2>&1 > pybuild.log
>
> 'svn blame' suggests this is my mistake. I use ..._PYC_ONLY so I didn't
> notice.
Cool, thanks for the quick reply. I do have BR2_PACKAGE_PYTHON_PY_ONLY
selected, but only because that's the default. Is PYC generally
smaller/faster? A quick google seems to suggest that it's not much
faster..but maybe the difference is more noticeable on smaller embedded
machines.
Toby
--
Tobias McNulty
Caktus Consulting Group, LLC
P.O. Box 1454
Carrboro, NC 27510
(919) 951-0052
http://www.caktusgroup.com
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers AND python
2009-03-25 23:26 ` Hamish Moffatt
2009-03-26 0:27 ` Tobias McNulty
@ 2009-03-26 6:57 ` Peter Korsgaard
2009-04-02 0:28 ` Hamish Moffatt
1 sibling, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2009-03-26 6:57 UTC (permalink / raw)
To: buildroot
>>>>> "Hamish" == Hamish Moffatt <hamish@cloud.net.au> writes:
Hi,
Hamish> 'svn blame' suggests this is my mistake. I use ..._PYC_ONLY
Hamish> so I didn't notice.
Will you fix it or should I?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers AND python
2009-03-26 6:57 ` Peter Korsgaard
@ 2009-04-02 0:28 ` Hamish Moffatt
2009-04-02 5:22 ` Peter Korsgaard
0 siblings, 1 reply; 9+ messages in thread
From: Hamish Moffatt @ 2009-04-02 0:28 UTC (permalink / raw)
To: buildroot
On Thu, Mar 26, 2009 at 07:57:42AM +0100, Peter Korsgaard wrote:
> >>>>> "Hamish" == Hamish Moffatt <hamish@cloud.net.au> writes:
>
> Hi,
>
> Hamish> 'svn blame' suggests this is my mistake. I use ..._PYC_ONLY
> Hamish> so I didn't notice.
>
> Will you fix it or should I?
I will.
The Python package needs a bit of work anyway. I am using 2.5 in my tree
(2.4 is in the repo). There should be a proper build for the host now
that we have $(HOST_DIR) too.
Hamish
--
Hamish Moffatt VK3SB <hamish@debian.org> <hamish@cloud.net.au>
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Buildroot] using linux 2.4 headers AND python
2009-04-02 0:28 ` Hamish Moffatt
@ 2009-04-02 5:22 ` Peter Korsgaard
0 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2009-04-02 5:22 UTC (permalink / raw)
To: buildroot
>>>>> "Hamish" == Hamish Moffatt <hamish@cloud.net.au> writes:
>> Will you fix it or should I?
Hamish> I will.
Hamish> The Python package needs a bit of work anyway. I am using 2.5
Hamish> in my tree (2.4 is in the repo). There should be a proper
Hamish> build for the host now that we have $(HOST_DIR) too.
Exactly. I had it on my todo list, but feel free to do it if you have
time for it, I don't normally use Python.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2009-04-02 5:22 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-24 22:40 [Buildroot] using linux 2.4 headers Tobias McNulty
2009-03-24 22:56 ` Peter Korsgaard
2009-03-25 3:57 ` [Buildroot] using linux 2.4 headers AND python Tobias McNulty
2009-03-25 15:35 ` Tobias McNulty
2009-03-25 23:26 ` Hamish Moffatt
2009-03-26 0:27 ` Tobias McNulty
2009-03-26 6:57 ` Peter Korsgaard
2009-04-02 0:28 ` Hamish Moffatt
2009-04-02 5:22 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox