How to Compile Source Code in Empty Crust?

Using applications, configuring, problems
Post Reply
Message
Author
tommyhill
Posts: 29
Joined: Fri 16 Jun 2006, 01:13

How to Compile Source Code in Empty Crust?

#1 Post by tommyhill »

I recently installed Empty Crust onto a 500 meg drive and would like to install a few programs directly from the source code. SInce Empty Crust is a bare bones operating system, what exactly do I need to compile source in Empty Crust ?

Tommy

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#2 Post by Pizzasgood »

You need the usr_devx.sfs file for Puppy 1.0.7.
http://puptrix.org/isos/Puppylinux-offi ... velopment/

Just download that and put it in /mnt/home (the same location as pup_001). If it's a full-hd install, I believe it goes in / instead. Then reboot, and you should be set. Unless you want to recompile the kernel or something, because Puppy doesn't include the kernel headers. Those would be in a separate package, but I don't know where the ones for the Puppy 1.x.x series would be. You shouldn't need them though, unless compiling kernel modules or something.
EDIT: maybe http://puptrix.org/isos/Puppylinux-offi ... ernel-2.6/

Actually, all Puppies use an add-on module for the development tools, not just Empty Crust. In the newer ones, they're called devx_xxx.sfs instead, but it does the same thing.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

tommyhill
Posts: 29
Joined: Fri 16 Jun 2006, 01:13

#3 Post by tommyhill »

Thanks Pizzagood... I always did like pizza :-)

Have you ever re-compiled the kernal on Puppy ? I was wondering if it is difficult to accomplish or is it easy to do like compiling the source code...

caka
Posts: 202
Joined: Thu 07 Dec 2006, 17:19

#4 Post by caka »

I am trying to compile the kernel too. Here there is a manual:

http://www.puppylinux.com/development/compilekernel.htm

I have some problem about it.

I am Spanish and don´t understand english very well. Sorry for my bad english.

Luck.

User avatar
Gn2
Posts: 943
Joined: Mon 16 Oct 2006, 05:33
Location: virtual - Veni vidi, nihil est adpulerit

#5 Post by Gn2 »

Do you want to just re-compile the modules - or the Kernel ?
BK's documentation is for modules only !

'Mrproper' or 'clean' should not be used > (reuse orignal Puppy version .config > which "should" be supplied in development tool Pkge)

Code: Select all

 make oldconfig
Once new kernel image is confirmed OK - if wished, mrproper may be used -
Keeping old build database info just takes up a bit of extra space 'tho - & speeds subsequent kernel compiles

See http://www.digitalhermit.com/linux/Kern ... HOWTO.html
Included with downloaded kernel sources is the Documentation folder containing file applying- patches.txt
Any desired module patches must be applied prior to any kernel/module compiling.

If they pertain to kernel version changes - they MUST be applied> and in proper sequence !

(The syntax for 2.6_xx kernels BTW in both Doc sources is incorrect but still usable)

If your Pkge sources are re-distributed for others - all must be compiled in "clean environment "
Ensuring no inadvertant optional dependencies are compiled in to binaries.

BACKUP old .config & bzImage before changing any system critical items such as the kernel or module !
It is highly recomended the kernel sources be stored for usage in own created folder
NOT /usr/src/linux <- which is symlink only to true full version name.

That keeps original headers & any upper-level or sub makefiles build info &/or symlinks separate from new.

HTH

User avatar
Pizzasgood
Posts: 6183
Joined: Wed 04 May 2005, 20:28
Location: Knoxville, TN, USA

#6 Post by Pizzasgood »

I am trying to compile the kernel too. Here there is a manual:

http://www.puppylinux.com/development/compilekernel.htm

I have some problem about it.

I am Spanish and don´t understand english very well. Sorry for my bad english.

Luck.
Well, that post was pretty decent. If it makes you feel any better, mi español no es muy bueno tampoco. I skimmed your topic earlier today, though, and was amazed at how much I did understand. On the other hand, I couldn't remember the word "tampoco" just now, and had to look it up :roll:

I've never compiled a kernel, but I've heard both good and bad comments about it, so I guess it's one of those iffy things.
[size=75]Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib[/size]
[img]http://www.browserloadofcoolness.com/sig.png[/img]

Post Reply