You are not logged in.
Pages: 1
I try to build kernel (source was changed) with
[root@Arch kernel]# makepkg -efi --asroot
Compiling and linking is ok, but package, that was built, has small size (412 byte) and there are no files in pkg.
Where was i wrong?
Offline
As a sidenote: Do not use --asroot, do not build as root at all.
Anyway, sounds like your source perhaps wasn't populated correctly, or there were an error that you missed in the build output.
Last edited by Mr.Elendig (2011-05-19 18:44:29)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Agree with Mr.Elendig, can you post the PKGBUILD you used? Would be helpful in figuring out what may have gone wrong
Offline
my guess it was a bad PKGBUILD and running makepkg as root allowed makepkg to put files all over our system...
Offline
Thank you for non-root compiling advice.
My steps:
cp -r /var/abs/core/kernel26 kernel
cd kernel
makepkg -o
Then I replaced some source files wtih custom files and changed 2 PKGBUILDs' lines:
pkgname=('kernel26' 'kernel26-headers' 'kernel26-manpages' 'kernel26-docs') # Build stock -ARCH kernel
# pkgname=kernel26-custom
These lines were replaced with
#pkgname=('kernel26' 'kernel26-headers' 'kernel26-manpages' 'kernel26-docs') # Build stock -ARCH kernel
pkgname=kernel26-custom
as "Kernel Compilation" article say.
makepkg -efi
Last edited by DKOI (2011-05-20 09:39:28)
Offline
What is 'makepkg -o' supposed to do?
Offline
What is 'makepkg -o' supposed to do?
--nobuild, from the man page....
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
karol wrote:What is 'makepkg -o' supposed to do?
--nobuild, from the man page....
Ah, that's right. I couldn't find it on the wiki page ...
Then I replaced some source files wtih custom files
Can you elaborate?
Offline
i wrote
int pixel_size;
int pixel_count;
int i;
.................
pixel_size = video->bpp / 8;
pixel_count = nbytes / pixel_size;
for (i = 0; i < pixel_count; i++)
memcpy(data + (pixel_count - (i + 1) * pixel_size),
mem + (i* pixel_size), pixel_size);
instead of
memcpy(data, mem, nbytes);
in uvc_video.c
It's just experiment for a while. But I think it's no matter because there are no making errors...
Offline
you also need to write custom or rename build function in PKGBUILD (see https://wiki.archlinux.org/index.php/Ke … 9_function )
Last edited by yurii (2011-07-02 15:53:09)
Offline
Pages: 1