Skip to content

howdo-zhangli/debian-linuxcnc-autobuild

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Makefile to automatically build Xenomai kernel packages for many
Debian/Ubuntu release and architecture combinations

---------------------------
Prerequisites:

The pbuilder and reprepro packages must be installed, in addition to
the usual kernel development environment.

    apt-get install pbuilder reprepro

---------------------------
Targets:

test:  list some variables and their values for debugging

<codename>/<arch>/.stamp-linux:
    Build the kernel packages (automatically builds the xenomai packages)

<codename>/<arch>/.stamp-xenomai:
    Build the xenomai packages (automatically builds the base.tgz chroot)

<codename>/<arch>/.stamp-kmodule:
    Build kernel module packages (automatically builds the kernel packages)
    This builds the r8168 kernel modules

<codename>/<arch>/base.tgz:  e.g. precise/base-i386.tgz
    Build the base chroot tarball with pbuilder --create

Codename is one of wheezy, squeeze, precise, lucid

Arch is one of amd64, i386

Most simply, just run 'make' to build all packages for all
<codename>/<arch> combos.

---------------------------
What it does

For each <codename>/<arch> combo:
- Downloads sources, checks out git repos, builds gpg keyring
- Creates a base pbuilder chroot tarball
- Builds the Xenomai runtime packages
- Builds a local PPA with the Xenomai runtime packages, needed for the
  kernel build
- Updates the pbuilder chroot tarball with the new PPA
- Builds the Xenomai kernel package
- Builds the r8168 kernel module

Package results go into <codename>/<arch>/pkgs.

---------------------------
TODO

- build only binary packages
  - build arch-indep binary packages only once
- timestamps are used in many targets, but these should probably be
  replaced with something more specific
- build smictrl packages


---------------------------
Links

http://wiki.debian.org/Debootstrap

https://wiki.ubuntu.com/PbuilderHowto

http://wiki.debian.org/PbuilderTricks

http://manpages.ubuntu.com/manpages/intrepid/man1/pbuilder-dist.1.html

http://en.wikipedia.org/wiki/Debian_build_toolchain


---------------------------
Random notes follow

multiple releases in a single ppa
http://bobthegnome.blogspot.com/2012/12/a-script-for-supporting-multiple-ubuntu.html


# build smictrl
git clone git://git.kiszka.org/smictrl.git && cd smictrl
git clone git://github.com/zultron/smictrl-deb.git debian
dpkg-buildpackage -uc -us && cd ..

About

Automatically build Debian packages for LinuxCNC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published