Overlay Filesystem?

Alles eine Frage des Images
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Overlay Filesystem?

Beitrag von Houdini »

Da ja immer wieder Fragen autauchen o etwas nach /bin, /var/bin, oder /etc, /var/etc usw kommt wäre ja vielleicht ein Overlayfilesystem wie unten was, oder?

http://www.denx.de/en/view/Software/Web ... i_fo_for_E

Houdini
Houdini
Developer
Beiträge: 2183
Registriert: Mittwoch 10. Dezember 2003, 07:59

Beitrag von Houdini »

Hier mal der Makefile Auszug und der diff:

Code: Alles auswählen

$(DEPDIR)/mini_fo: bootstrap Archive/mini_fo-0-6-2-pre1.tar.bz2 Patches/mini_fo.diff 
	( rm -rf mini_fo-0-6-2-pre1 || /bin/true ) && bunzip2 -cd Archive/mini_fo-0-6-2-pre1.tar.bz2 | TAPE=- tar -x && ( cd mini_fo-0-6-2-pre1; patch -p0 < ../Patches/mini_fo.diff )
	cd mini_fo-0-6-2-pre1 && \
		$(BUILDENV) \
		$(MAKE) prefix=$(targetprefix) CROSS_COMPILE=$(target)- KERNELVERSION=2.4 TUXBOX_KERNELVERSION=$(KERNELVERSION) buildprefix=$(buildprefix) && \
		$(MAKE) install prefix=$(targetprefix) CROSS_COMPILE=$(target)- KERNELVERSION=2.4 TUXBOX_KERNELVERSION=$(KERNELVERSION)
	rm -rf mini_fo-0-6-2-pre1
	touch $@

Code: Alles auswählen

--- Makefile.orig	2005-10-15 12:49:43.000000000 +0200
+++ Makefile	2006-05-25 18:27:43.000000000 +0200
@@ -12,22 +12,24 @@
 KERNELVERSION=$(shell uname -r | cut -d. -f1,2)
 
 # Regular build, this should point to the kernel headers:
-KERNEL_SRC = /lib/modules/$(shell uname -r)/build/
+KERNEL_SRC = $(prefix)/lib/modules/$(TUXBOX_KERNELVERSION)/build/
 #KERNEL_SRC = /usr/src/linux-2.6.11.7/
 
 TOPINC  = -I$(KERNEL_SRC)/include
+TOPINC  = -I$(buildprefix)/linux -I$(buildprefix)/linux/arch/ppc
 
 # UML build, compile with "make ARCH=um"
 UML_ROOTFS = /home/mk/uml/root_fs_slack8.1
 UML_ROOTFS_MNT = /mnt/other/
 
-MODDIR = /lib/modules/$(shell uname -r)
+MODDIR = $(prefix)/lib/modules/$(TUXBOX_KERNELVERSION)
 
 # allow custom override of TOPINC for fistgen developers
 -include fistdev.mk
 
 ifeq ($(KERNELVERSION),2.4)
-CFLAGS = -D__KERNEL__ -DMODULE -DFISTGEN -I. ${TOPINC} -O2 -Wall -Wno-unused -g -fno-common -fno-schedule-insns -fno-schedule-insns2 -fno-strict-aliasing -msoft-float -Werror 
+CFLAGS = -D__KERNEL__ -DMODULE -DFISTGEN -I. ${TOPINC} -O2 -Wall -Wno-unused -fno-common -fno-schedule-insns -fno-schedule-insns2 -fno-strict-aliasing -msoft-float -Werror $(TARGET_CFLAGS)
+#CFLAGS = -D__KERNEL__ -DMODULE -DFISTGEN -I. ${TOPINC} -O2 -Wall -Wno-unused -g -fno-common -fno-schedule-insns -fno-schedule-insns2 -fno-strict-aliasing -msoft-float -Werror $(TARGET_CFLAGS)
 ifeq ($(ARCH),um)
 CFLAGS += $(shell cd $(KERNEL_SRC) ; make script 'SCRIPT=@echo $$(CFLAGS)' ARCH=um)
 endif