Changeset 44


Ignore:
Timestamp:
Jul 6, 2010, 12:11:40 AM (9 years ago)
Author:
amain
Message:

Fix libnl ( now really cross-compile )
Add package iw

Location:
debwrt/trunk
Files:
14 added
4 edited

Legend:

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

    r41 r44  
    1919TARGET_ARCH:=$(call qstrip,$(CONFIG_ARCH))
    2020CHROOT:=sudo chroot $(DEBIAN_BUILD_DIR)
    21 CHROOT_USER:=$(CHROOT) su - $(USER) -c bash
     21CHROOT_USER:=$(CHROOT) su - $(USER)
    2222SB2:=sudo chroot $(DEBIAN_BUILD_DIR) su - $(USER) -c bash -c "export LC_ALL=C; cd $(SB2_ARCH)-lenny && sb2"
    2323SB2E:=sudo chroot $(DEBIAN_BUILD_DIR) su - $(USER) -c bash -c "export LC_ALL=C; cd $(SB2_ARCH)-lenny && sb2 -e"
     
    3333chu: chroot-user
    3434chroot:
    35         $(CHROOT)
     35        $(CHROOT) bash -c "cd /usr/src; exec bash"
    3636chroot-user:
    37         $(CHROOT_USER)
     37        $(CHROOT_USER) bash -c "cd /usr/src; exec bash"
    3838
    3939#debian/buildenv/create: debian/buildenv/prepare debian/buildenv/qemu-build debian/buildenv/scratchbox-prepare
     
    5151                                                $(DEBIAN_BUILD_DIR) \
    5252                                                $(CONFIG_DEBIAN_BUILDENV_REPOSITORY)
     53        sudo bash -c "echo 127.0.0.1 `hostname -s` >$(DEBIAN_BUILD_DIR)/etc/hosts"
     54        sudo bash -c "echo $(USER) ALL=(ALL) NOPASSWD: ALL >$(DEBIAN_BUILD_DIR)/etc/sudoers"
    5355        sudo bash -c "echo debwrt > $(DEBIAN_BUILD_DIR)/etc/debian_chroot"
     56        sudo bash -c "echo syntax on >$(DEBIAN_BUILD_DIR)/etc/vimrc"
    5457        sudo bash -c "echo 0 > /proc/sys/vm/mmap_min_addr" # for ARM targets
    5558        sudo bash -c "echo \"deb $(call qstrip,$(CONFIG_DEBIAN_BUILDENV_REPOSITORY)) $(DEBIAN_BUILD_VERSION) main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
     59        sudo chown $(USER):$(GROUP) $(DEBIAN_BUILD_DIR)/usr/src
    5660        sudo chroot $(DEBIAN_BUILD_DIR) apt-get update
    5761        sudo chroot $(DEBIAN_BUILD_DIR) groupadd -g $(shell id -g) debwrt
     
    7680        sudo bash -c "echo \"deb $(call qstrip,$(CONFIG_EMDEBIAN_BUILDENV_REPOSITORY)) $(DEBIAN_BUILD_VERSION) main\" >> $(DEBIAN_BUILD_DIR)/etc/apt/sources.list"
    7781        sudo chroot $(DEBIAN_BUILD_DIR) apt-get update
    78         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 sudo openssh-client dpkg-cross apt-cross"
    79         sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install libc6-$(TARGET_ARCH)-cross libc6-dev-$(TARGET_ARCH)-cross binutils-$(TARGET_ARCH)-linux-gnu gcc-4.3-$(TARGET_ARCH)-linux-gnu g++-4.3-$(TARGET_ARCH)-linux-gnu"
     82        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 sudo openssh-client dpkg-cross apt-cross vim pkg-config dpatch"
     83        sudo chroot $(DEBIAN_BUILD_DIR) bash -c "export LC_ALL=C; apt-get -y --force-yes install libc6-$(TARGET_ARCH)-cross libc6-dev-$(TARGET_ARCH)-cross binutils-$(TARGET_ARCH)-linux-gnu gcc-4.3-$(TARGET_ARCH)-linux-gnu g++-4.3-$(TARGET_ARCH)-linux-gnu linux-kernel-headers-$(TARGET_ARCH)-cross"
    8084        touch $@
    8185
  • debwrt/trunk/debian/package/debian.mk

    r10 r44  
    1616# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1717
    18 #include $(TOPDIR)/debian/package/mtd/build.mk
     18include $(TOPDIR)/debian/package/libnl/build.mk
     19include $(TOPDIR)/debian/package/iw/build.mk
  • debwrt/trunk/debian/package/libnl/debian/rules

    r42 r44  
    4646        # ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
    4747        # debwrt: some weirness: add gcc to host/build args, otherwist build will fail
    48         ./configure --host=$(DEB_HOST_GNU_TYPE)-gcc --build=$(DEB_BUILD_GNU_TYPE)-gcc  --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
     48        pwd
     49        ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)  --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
    4950
     51configure: configure-stamp
     52configure-stamp:
     53        dh_testdir
     54        #dpatch apply-all
     55        -patch -f -p1 <debian/patches/120-add_if_vlan.h.patch
     56        touch configure-stamp
    5057
    5158build: build-stamp
     
    6269        dh_testroot
    6370        rm -f build-stamp
     71        #dpatch deapply-all
     72        -patch -f -R -p1 <debian/patches/120-add_if_vlan.h.patch
    6473
    6574        # Add here commands to clean up after the build process.
  • debwrt/trunk/rules/debwrt.mk

    r26 r44  
    103103DEBIAN_BUILD_DIR:=$(BUILD_DIR_BASE)/debian-$(BOARD)-$(SUB_BOARD)-$(DEBIAN_BUILD_VERSION)
    104104
     105# Debina packages dir
     106DEBIAN_PACKAGES_DIR:=$(TOPDIR)/debian/package
     107INSTALL_DIR_DEBIAN_PACKAGES:=$(INSTALL_DIR)/debian
    105108
    106109# Export defaults to other Makefiles
Note: See TracChangeset for help on using the changeset viewer.