source: freewrt/package/mini_fo/patches/101-kmod_build.patch@ db5651c

freewrt_1_0 freewrt_2_0
Last change on this file since db5651c was db5651c, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago

merge wbx-target-cleanup to trunk.

  • mk directory for some top level makefiles (build.mk,vars.mk)
  • add a separate configfs partition to all models, 128 kb big
  • add model and platform specific startup files and kernel configs
  • delete target/linux/package, add all addon kernel packages to packages
  • simplify target/linux/brcm-2.4/Makefile, abstraction to mk/ comes later
  • add target/image directory, place where the different images are created
  • default off for all extra packages, be sure that you enable all packages you need to get a dsl-capable router. snapshots will be created by a specific config which contains all needed stuff (iptables, pppoe, pptp, haserl, webif)

git-svn-id: svn://www.freewrt.org/trunk/freewrt@588 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 1.6 KB
  • mini_fo-0-6-2-pre1

    diff -Nur mini_fo-0-6-2-pre1/Makefile mini_fo-0-6-2-pre1.patched/Makefile
    old new  
    2626# allow custom override of TOPINC for fistgen developers
    2727-include fistdev.mk
    2828
     29obj-m := mini_fo.o
     30mini_fo-objs   := meta.o dentry.o file.o inode.o main.o super.o state.o aux.o
     31
    2932ifeq ($(KERNELVERSION),2.4)
    30 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
    31 ifeq ($(ARCH),um)
    32 CFLAGS += $(shell cd $(KERNEL_SRC) ; make script 'SCRIPT=@echo $$(CFLAGS)' ARCH=um)
    33 endif
    34 UCFLAGS = -DFISTGEN -I. ${TOPINC} -g -O2 -Wall -Wno-unused -Werror
    35 endif
    3633
    37 CC      = $(CROSS_COMPILE)gcc
    38 LD      = $(CROSS_COMPILE)ld
     34O_TARGET := $(obj-m)
     35obj-y := $(mini_fo-objs)
    3936
    40 obj-m := mini_fo.o
    41 mini_fo-objs   := meta.o dentry.o file.o inode.o main.o super.o state.o aux.o
     37-include $(TOPDIR)/Rules.make
     38
     39endif
    4240
    4341all: mini_fo$(KERNELVERSION)
    4442
    45 mini_fo2.4: ${obj-m}
     43mini_fo2.4:
     44        $(MAKE) -C ${KERNEL_SRC} TOPDIR="${KERNEL_SRC}" SUBDIRS=$(shell pwd) modules
    4645
    4746mini_fo2.6:
    48         make -C ${KERNEL_SRC} SUBDIRS=$(PWD) modules
    49 
    50 ${obj-m}: ${mini_fo-objs}
    51         $(LD) -o ${obj-m} -r ${mini_fo-objs}
    52 
    53 tags:
    54         ctags -R -e
     47        $(MAKE) -C ${KERNEL_SRC} SUBDIRS=$(shell pwd) modules
    5548
    5649clean:
    5750ifeq ($(KERNELVERSION),2.6)
    58         -make -C ${KERNEL_SRC} SUBDIRS=$(PWD) clean
     51        -$(MAKE) -C ${KERNEL_SRC} SUBDIRS=$(shell pwd) clean
    5952endif
    6053        rm -f ${obj-m} ${mini_fo-objs} ${obj-m:.o=.ko} *.d .*.flags *~
    6154        rm -f TAGS
Note: See TracBrowser for help on using the repository browser.