|
@@ -68,11 +68,12 @@ prepare-target: FORCE
|
|
all: prepare-target
|
|
all: prepare-target
|
|
+@$(GLUONMAKE) prepare
|
|
+@$(GLUONMAKE) prepare
|
|
+@$(GLUONMAKE) images
|
|
+@$(GLUONMAKE) images
|
|
|
|
+ +@$(GLUONMAKE) modules
|
|
|
|
|
|
prepare: prepare-target
|
|
prepare: prepare-target
|
|
+@$(GLUONMAKE) $@
|
|
+@$(GLUONMAKE) $@
|
|
|
|
|
|
-clean download images: FORCE
|
|
|
|
|
|
+clean download images modules: FORCE
|
|
@$(CheckExternal)
|
|
@$(CheckExternal)
|
|
@$(CheckTarget)
|
|
@$(CheckTarget)
|
|
+@$(GLUONMAKE_EARLY) maybe-prepare-target
|
|
+@$(GLUONMAKE_EARLY) maybe-prepare-target
|
|
@@ -178,6 +179,10 @@ override SUBTARGET := $(GLUON_TARGET_$(GLUON_TARGET)_SUBTARGET)
|
|
target_prepared_stamp := $(BOARD_BUILDDIR)/target-prepared
|
|
target_prepared_stamp := $(BOARD_BUILDDIR)/target-prepared
|
|
gluon_prepared_stamp := $(BOARD_BUILDDIR)/prepared
|
|
gluon_prepared_stamp := $(BOARD_BUILDDIR)/prepared
|
|
|
|
|
|
|
|
+PREPARED_RELEASE = $$(cat $(gluon_prepared_stamp))
|
|
|
|
+IMAGE_PREFIX = gluon-$(GLUON_SITE_CODE)-$(PREPARED_RELEASE)
|
|
|
|
+MODULE_PREFIX = gluon-$(GLUON_SITE_CODE)-$(PREPARED_RELEASE)
|
|
|
|
+
|
|
|
|
|
|
include $(INCLUDE_DIR)/target.mk
|
|
include $(INCLUDE_DIR)/target.mk
|
|
|
|
|
|
@@ -228,13 +233,6 @@ config: FORCE
|
|
| sed -e 's/ /\n/g'; \
|
|
| sed -e 's/ /\n/g'; \
|
|
) > $(BOARD_BUILDDIR)/config.tmp
|
|
) > $(BOARD_BUILDDIR)/config.tmp
|
|
scripts/config/conf --defconfig=$(BOARD_BUILDDIR)/config.tmp Config.in
|
|
scripts/config/conf --defconfig=$(BOARD_BUILDDIR)/config.tmp Config.in
|
|
- mv .config $(BOARD_BUILDDIR)/config
|
|
|
|
-
|
|
|
|
- echo 'CONFIG_ALL_KMODS=y' >> $(BOARD_BUILDDIR)/config.tmp
|
|
|
|
- scripts/config/conf --defconfig=$(BOARD_BUILDDIR)/config.tmp Config.in
|
|
|
|
- mv .config $(BOARD_BUILDDIR)/config-allmods
|
|
|
|
-
|
|
|
|
- cp $(BOARD_BUILDDIR)/config .config
|
|
|
|
|
|
|
|
prepare-target: FORCE
|
|
prepare-target: FORCE
|
|
rm $(GLUON_OPENWRTDIR)/tmp || true
|
|
rm $(GLUON_OPENWRTDIR)/tmp || true
|
|
@@ -284,8 +282,8 @@ toolchain: $(toolchain/stamp-install) $(tools/stamp-install)
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
|
kernel: FORCE
|
|
kernel: FORCE
|
|
- +$(NO_TRACE_MAKE) -C $(TOPDIR)/target/linux/$(BOARD) -f $(GLUONDIR)/include/Makefile.target $(LINUX_DIR)/.image TARGET_BUILD=1
|
|
|
|
- +$(NO_TRACE_MAKE) -C $(TOPDIR)/target/linux/$(BOARD) -f $(GLUONDIR)/include/Makefile.target $(LINUX_DIR)/.modules TARGET_BUILD=1
|
|
|
|
|
|
+ +$(NO_TRACE_MAKE) -C $(TOPDIR)/target/linux/$(BOARD) $(LINUX_DIR)/.image TARGET_BUILD=1
|
|
|
|
+ +$(NO_TRACE_MAKE) -C $(TOPDIR)/target/linux/$(BOARD) $(LINUX_DIR)/.modules TARGET_BUILD=1
|
|
|
|
|
|
packages: $(package/stamp-compile)
|
|
packages: $(package/stamp-compile)
|
|
$(_SINGLE)$(SUBMAKE) -r package/index
|
|
$(_SINGLE)$(SUBMAKE) -r package/index
|
|
@@ -313,6 +311,14 @@ prepare: FORCE
|
|
$(gluon_prepared_stamp):
|
|
$(gluon_prepared_stamp):
|
|
+$(GLUONMAKE) prepare
|
|
+$(GLUONMAKE) prepare
|
|
|
|
|
|
|
|
+modules: FORCE $(gluon_prepared_stamp)
|
|
|
|
+ -rm -f $(GLUON_MODULEDIR)/*/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)/*
|
|
|
|
+ -rmdir -p $(GLUON_MODULEDIR)/*/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)
|
|
|
|
+ mkdir -p $(GLUON_MODULEDIR)/$(MODULE_PREFIX)/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)
|
|
|
|
+ cp $(PACKAGE_DIR)/kmod-*.ipk $(GLUON_MODULEDIR)/$(MODULE_PREFIX)/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)
|
|
|
|
+
|
|
|
|
+ $(_SINGLE)$(SUBMAKE) -r package/index PACKAGE_DIR=$(GLUON_MODULEDIR)/$(MODULE_PREFIX)/$(BOARD)/$(if $(SUBTARGET),$(SUBTARGET),generic)
|
|
|
|
+
|
|
|
|
|
|
include $(INCLUDE_DIR)/package-ipkg.mk
|
|
include $(INCLUDE_DIR)/package-ipkg.mk
|
|
|
|
|
|
@@ -325,9 +331,6 @@ BIN_DIR = $(PROFILE_BUILDDIR)/images
|
|
|
|
|
|
TARGET_DIR = $(PROFILE_BUILDDIR)/root
|
|
TARGET_DIR = $(PROFILE_BUILDDIR)/root
|
|
|
|
|
|
-PREPARED_RELEASE = $$(cat $(gluon_prepared_stamp))
|
|
|
|
-IMAGE_PREFIX = gluon-$(GLUON_SITE_CODE)-$(PREPARED_RELEASE)
|
|
|
|
-
|
|
|
|
OPKG:= \
|
|
OPKG:= \
|
|
IPKG_TMP="$(TMP_DIR)/ipkgtmp" \
|
|
IPKG_TMP="$(TMP_DIR)/ipkgtmp" \
|
|
IPKG_INSTROOT="$(TARGET_DIR)" \
|
|
IPKG_INSTROOT="$(TARGET_DIR)" \
|
|
@@ -440,6 +443,6 @@ manifest: FORCE
|
|
) : \
|
|
) : \
|
|
) >> $(GLUON_BUILDDIR)/$(GLUON_BRANCH).manifest.tmp
|
|
) >> $(GLUON_BUILDDIR)/$(GLUON_BRANCH).manifest.tmp
|
|
|
|
|
|
-.PHONY: all images prepare clean gluon-tools manifest
|
|
|
|
|
|
+.PHONY: all images prepare modules clean gluon-tools manifest
|
|
|
|
|
|
endif
|
|
endif
|