Changeset 902 for trunk/debian/buildenv


Ignore:
Timestamp:
Jan 15, 2017, 2:26:01 PM (2 years ago)
Author:
amain
Message:

native: erlite native kernel compile support

Location:
trunk/debian/buildenv
Files:
3 edited

Legend:

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

    r675 r902  
    11# DebWrt - Debian on Embedded devices
    22#
    3 # Copyright (C) 2010-2015 Johan van Zoomeren <amain@debwrt.net>
     3# Copyright (C) 2010-2017 Johan van Zoomeren <amain@debwrt.net>
    44#
    55# This program is free software: you can redistribute it and/or modify
     
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 debian/buildenv/create: debian/buildenv/prepare
     18debian/buildenv/create: debian/buildenv/prepare debian/buildenv/build-essential
    1919        touch $@
    2020
    2121debian/buildenv/prepare:
    2222        mkdir -p $(DEBIAN_BUILD_DIR)
    23         # Due to various bugs in debootstrap in combination with fakechroot it is not
    24         # possible to create a fakechroot here - and therefore we need to use chroot
    25         # with sudo
    26         #fakeroot fakechroot debootstrap
    27                                                 #--variant=fakechroot
    28         sudo debootstrap    --include=$(subst $(space),$(empty),$(CONFIG_DEBIAN_BUILDENV_INCLUDE_PACKAGES)) \
    29                                             $(DEBIAN_BUILD_VERSION) \
    30                                                 $(DEBIAN_BUILD_DIR) \
    31                                                 $(CONFIG_DEBIAN_BUILDENV_REPOSITORY)
     23        sudo debootstrap --include=$(subst $(space),$(empty),$(CONFIG_DEBIAN_BUILDENV_INCLUDE_PACKAGES)) \
     24                         $(DEBIAN_BUILD_VERSION) \
     25                         $(DEBIAN_BUILD_DIR) \
     26                         $(CONFIG_DEBIAN_BUILDENV_REPOSITORY)
    3227        sudo bash -c "echo 127.0.0.1 `hostname -s` localhost >$(DEBIAN_BUILD_DIR)/etc/hosts"
    3328        sudo bash -c "echo debwrt-$(TARGET_ARCH)-$(DEBIAN_BUILD_VERSION) > $(DEBIAN_BUILD_DIR)/etc/debian_chroot"
     
    3934        sudo chroot $(DEBIAN_BUILD_DIR) apt-get update
    4035        sudo chroot $(DEBIAN_BUILD_DIR) groupadd -g $(shell id -g) debwrt
    41         sudo chroot $(DEBIAN_BUILD_DIR) useradd -g debwrt -s /bin/bash -m -u $(shell id -u) $$USER
     36        sudo chroot $(DEBIAN_BUILD_DIR) useradd -g debwrt -s /bin/bash -d /usr/src -m -u $(shell id -u) $$USER
    4237        sudo mkdir -p $(DEBIAN_BUILD_DIR)/etc/sudoers.d
    4338        sudo bash -c "echo \"$(USER) ALL=(ALL) NOPASSWD: ALL\" >$(DEBIAN_BUILD_DIR)/etc/sudoers.d/debwrt"
     
    4540        touch $@
    4641
     42debian/buildenv/build-essential:
     43        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 devscripts"
     44        touch $@
     45
     46
    4747debian/buildenv/clean: debian/buildenv/qemu-clean debian/buildenv/emdebian-clean
    48         # sudo should not be needed if fakechroot would have worked
    4948        sudo rm -rf $(DEBIAN_BUILD_DIR)
    5049        rm -f debian/buildenv/prepare
    5150        rm -f debian/buildenv/create
     51        rm -f debian/buildenv/build-essential
    5252
    5353.PHONY: debian/buildenv/clean
  • trunk/debian/buildenv/debian.mk

    r675 r902  
    2222chu: chroot-user
    2323chroot:
    24         $(CHROOT) bash -c "cd /usr/src; exec bash"
     24        @$(CHROOT) bash -c "cd /usr/src; exec bash"
    2525chroot-user:
    26         $(CHROOT_USER) bash -c "cd /usr/src; exec bash"
     26        @$(CHROOT_USER)
    2727
    2828include $(TOPDIR)/debian/buildenv/buildenv.mk
  • trunk/debian/buildenv/emdebian.mk

    r685 r902  
    6161        #sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install apt-cross
    6262        #sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install libmpfr1ldbl
    63         sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install emdebian-archive-keyring xapt dpkg-cross
     63        sudo chroot $(DEBIAN_BUILD_DIR) apt-get -y install emdebian-archive-keyring #xapt dpkg-cross
    6464        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 devscripts"
    6565ifeq ($(TARGET_ARCH),arm)
Note: See TracChangeset for help on using the changeset viewer.