mirror of https://github.com/dirtbags/moth.git
add mrd6 to router image
This commit is contained in:
parent
7db7440fbf
commit
bdff29149a
|
@ -1,19 +1,17 @@
|
||||||
ROUTER_PKGDIR = $(TARGET)/router
|
ROUTER_PKGDIR = $(TARGET)/router
|
||||||
ROUTER_BUILDDIR = $(BUILD)/router
|
ROUTER_BUILDDIR = $(BUILD)/router
|
||||||
|
|
||||||
|
router-source:
|
||||||
|
|
||||||
router-source: $(ROUTER_BUILDDIR)/radvd-source
|
router-build:
|
||||||
|
|
||||||
router-build: $(ROUTER_BUILDDIR)/radvd-build
|
|
||||||
|
|
||||||
router-install: router-build
|
router-install: router-build
|
||||||
mkdir -p $(ROUTER_PKGDIR)/bin
|
|
||||||
|
|
||||||
cp $(RADVD_SRCDIR)/radvd $(ROUTER_PKGDIR)/bin/
|
|
||||||
cp $(RADVD_SRCDIR)/radvdump $(ROUTER_PKGDIR)/bin/
|
|
||||||
|
|
||||||
$(call COPYTREE, packages/router/service, $(ROUTER_PKGDIR)/service)
|
$(call COPYTREE, packages/router/service, $(ROUTER_PKGDIR)/service)
|
||||||
|
|
||||||
|
router-clean:
|
||||||
|
rm -rf $(ROUTER_PKGDIR) $(ROUTER_BUILDDIR)
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
## radvd
|
## radvd
|
||||||
##
|
##
|
||||||
|
@ -26,19 +24,48 @@ $(RADVD_TARBALL):
|
||||||
@ mkdir -p $(@D)
|
@ mkdir -p $(@D)
|
||||||
wget -O $@ $(RADVD_URL)
|
wget -O $@ $(RADVD_URL)
|
||||||
|
|
||||||
|
router-source: $(ROUTER_BUILDDIR)/radvd-source
|
||||||
$(ROUTER_BUILDDIR)/radvd-source: $(RADVD_TARBALL)
|
$(ROUTER_BUILDDIR)/radvd-source: $(RADVD_TARBALL)
|
||||||
mkdir -p $(ROUTER_BUILDDIR)
|
mkdir -p $(ROUTER_BUILDDIR)
|
||||||
zcat $(RADVD_TARBALL) | (cd $(ROUTER_BUILDDIR) && tar xf -)
|
zcat $(RADVD_TARBALL) | (cd $(ROUTER_BUILDDIR) && tar xf -)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
router-build: $(ROUTER_BUILDDIR)/radvd-build
|
||||||
$(ROUTER_BUILDDIR)/radvd-build: $(ROUTER_BUILDDIR)/radvd-source
|
$(ROUTER_BUILDDIR)/radvd-build: $(ROUTER_BUILDDIR)/radvd-source
|
||||||
cd $(RADVD_SRCDIR) && ./configure $(CONFIG_XCOMPILE_FLAGS)
|
cd $(RADVD_SRCDIR) && ./configure $(CONFIG_XCOMPILE_FLAGS)
|
||||||
$(MAKE) -C $(RADVD_SRCDIR)
|
$(MAKE) -C $(RADVD_SRCDIR)
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
|
router-install: radvd-install
|
||||||
|
radvd-install:
|
||||||
|
mkdir -p $(ROUTER_PKGDIR)/bin
|
||||||
|
cp $(RADVD_SRCDIR)/radvd $(ROUTER_PKGDIR)/bin/
|
||||||
|
cp $(RADVD_SRCDIR)/radvdump $(ROUTER_PKGDIR)/bin/
|
||||||
|
|
||||||
|
|
||||||
router-clean:
|
##
|
||||||
rm -rf $(ROUTER_PKGDIR)
|
## mrd6
|
||||||
|
##
|
||||||
|
MRD6_CACHE = $(CACHE)/mrd6.git
|
||||||
|
MRD6_BUILDDIR = $(ROUTER_BUILDDIR)/mrd6
|
||||||
|
MRD6_URL = https://github.com/hugosantos/mrd6.git
|
||||||
|
|
||||||
|
$(MRD6_CACHE):
|
||||||
|
git clone --bare $(MRD6_URL) $@
|
||||||
|
|
||||||
|
router-source: $(MRD6_BUILDDIR)
|
||||||
|
$(MRD6_BUILDDIR): $(MRD6_CACHE)
|
||||||
|
git clone $< $@
|
||||||
|
|
||||||
|
router-build: $(ROUTER_BUILDDIR)/mrd6-build
|
||||||
|
$(ROUTER_BUILDDIR)/mrd6-build: $(MRD6_BUILDDIR)
|
||||||
|
$(MAKE) -C $(MRD6_BUILDDIR)
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
router-install: mrd6-install
|
||||||
|
mrd6-install:
|
||||||
|
mkdir -p $(ROUTER_PKGDIR)/bin
|
||||||
|
cp $(MRD6_BUILDDIR)/src/mrd $(ROUTER_PKGDIR)/bin
|
||||||
|
|
||||||
|
|
||||||
PACKAGES += router
|
PACKAGES += router
|
||||||
|
|
Loading…
Reference in New Issue