@echo ' clean - remove compiled files'
@echo ' distclean - remove all generated files'
@echo ''
-COMPONENTS = root_image linux syslinux
+COMPONENTS = root_image linux syslinux
TOP= .
include sources.mk
LINUX_SRC = $(PWD)/linux
LINUX_DST = $(PWD)/linux-build
+ROOTIMAGE_DST = $(PWD)/root_image
linux-DISTRIB_TARGET=dist/common/vmlinuz
.PHONY: linux-dist
linux-dist: linux-dist-nodep
-$(LINUX_DST)/usr/gen_init_cpio:
+$(LINUX_DST)/usr/gen_init_cpio:
$(MAKE) -C $(LINUX_SRC) O=$(LINUX_DST) usr
.PHONY: linux-config
yes "" | $(MAKE) -C $(LINUX_SRC) O=$(LINUX_DST) oldconfig
.PHONY: linux-modules
-linux-modules: linux-config
+linux-modules: linux-config
@mkdir -p $(LINUX_DST)/modulespace
$(MAKE) -j$$(($(NCPUS) * 2)) -C $(LINUX_SRC) O=$(LINUX_DST) modules
$(MAKE) -j$$(($(NCPUS) * 2)) -C $(LINUX_SRC) O=$(LINUX_DST) \
NEB_TARGETS = linux-dist root_image-dist
.PHONY: xtt-common
-xtt-common: $(NEB_TARGETS)
+xtt-common: $(NEB_TARGETS)
$(INSTALL_DATA) syslinux/com32/modules/*.c32 dist/common/
$(INSTALL_DATA) syslinux/com32/mboot/*.c32 dist/common/
$(INSTALL_DATA) syslinux/com32/menu/*.c32 dist/common/
.PHONY: xtt-iso
-xtt-iso: xtt-common
+xtt-iso: xtt-common
$(INSTALL_DIR) dist/iso/isolinux/
$(INSTALL_DATA) dist/common/* dist/iso/isolinux/
rm -f dist/iso/isolinux/{modules,userspace}.cpio.gz
-o dist/root_image.iso dist/iso
.PHONY: xtt-fat
-xtt-fat: xtt-common
+xtt-fat: xtt-common
$(INSTALL_DIR) dist/fat/
rm -f dist/fat/{modules,userspace}.cpio.gz
$(INSTALL_DATA) dist/common/* dist/fat/
MTOOLSRC=$(MTOOLSRC) mcopy -v -p dist/fat/* z:
.PHONY: xtt-pxe
-xtt-pxe: xtt-common
+xtt-pxe: xtt-common
$(INSTALL_DIR) dist/pxe/
$(INSTALL_DATA) dist/common/* dist/pxe/
rm -f dist/pxe/{modules,userspace}.cpio.gz