Changeset 579 for trunk/debian/buildenv


Ignore:
Timestamp:
Dec 24, 2013, 10:08:58 PM (6 years ago)
Author:
amain
Message:

debian/package: convert package to new calling convention - major step in simplyfing and cleaning up package builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/buildenv/debian.mk

    r337 r579  
    3939        $(CHROOT_USER) bash -c "cd /usr/src; exec bash"
    4040
    41 #debian/buildenv/create: debian/buildenv/prepare debian/buildenv/qemu-build debian/buildenv/scratchbox-prepare
    4241debian/buildenv/create: debian/buildenv/prepare debian/buildenv/emdebian-prepare debian/buildenv/qemu-build
    4342        touch $@
     
    8584#
    8685# Use emdebian stable/lenny cross compiler. Unstable seems to be broken now for a long time
     86#
     87# Emdebian suggests to use squeeze, even if on wheezey or higher:
     88# Currently, toolchains for Squeeze are preferred. If using Wheezy or unstable, add
     89# a Squeeze source for your own architecture using your normal Debian mirror for
     90# dependencies which are no longer in wheezy or unstable.
     91#
    8792#EMDEBIAN_RELEASE:=$(DEBIAN_BUILD_VERSION)
    88 EMDEBIAN_RELEASE:=stable
     93EMDEBIAN_RELEASE:=squeeze
     94
     95# Automatic installing of build dependencies
     96#
     97# <= Lenny = apt-cross
     98# >  Lenny = xapt
     99#
     100# Squeeze needs some backorts to get xapt working, so from now on
     101# DebWrt will only support wheezy and up.
     102#
     103# Link: https://wiki.debian.org/EmdebianToolchain
    89104
    90105# note: to speed up setting up: do not install devscripts
    91106# note: a mailservers seems to be installed and started: bad - needs removal
     107
    92108debian/buildenv/emdebian-prepare: debian/buildenv/prepare
     109        @echo "I: Adding squeeze source incase Emdebiand squeeze is missing packages in wheezy or higher..."
    93110        sudo bash -c "echo \"deb $(call qstrip,$(CONFIG_EMDEBIAN_BUILDENV_REPOSITORY)) $(EMDEBIAN_RELEASE) main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
     111        sudo bash -c "echo \"deb $(call qstrip,$(CONFIG_DEBIAN_BUILDENV_REPOSITORY)) squeeze main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
     112        sudo bash -c "echo \"deb-src $(call qstrip,$(CONFIG_DEBIAN_BUILDENV_REPOSITORY)) squeeze main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
    94113        # Add lenny repo, just for apt-cross
    95         sudo bash -c "echo \"deb  http://archive.debian.org/debian lenny main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
     114        #sudo bash -c "echo \"deb  http://archive.debian.org/debian lenny main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
    96115        #sudo bash -c "echo -e \"Package: *\nPin: release a=lenny\nPin-Priority: 200\" > $(DEBIAN_BUILD_DIR)/etc/apt/preferences"
    97116        sudo chroot $(DEBIAN_BUILD_DIR) apt-get update
    98         sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install apt-cross
    99         sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install libmpfr1ldbl
    100         sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install build-essential debootstrap fakeroot zlib1g-dev dh-make openssh-client dpkg-cross vim pkg-config dpatch libncurses5-dev devscripts subversion automake gcc-multilib g++-multilib quilt"
     117        #sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install apt-cross
     118        #sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install libmpfr1ldbl
     119        sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install emdebian-archive-keyring xapt dpkg-cross
     120        sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install build-essential dh-make debootstrap fakeroot zlib1g-dev openssh-client vim pkg-config dpatch libncurses5-dev devscripts subversion automake gcc-multilib g++-multilib quilt"
    101121ifeq ($(TARGET_ARCH),arm)
    102122        sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi gcc-4.3-arm-linux-gnu g++-4.4-arm-linux-gnueabi linux-kernel-headers-armel-cross"
     
    142162        rm -f debian/buildenv/qemu-build
    143163
    144 .PHONY: debian/buildenv/clean
     164.PHONY: debian/buildenv/clean debian/buildenv
    145165
Note: See TracChangeset for help on using the changeset viewer.