Changeset 2795

Show
Ignore:
Timestamp:
06/14/07 14:55:49 (2 years ago)
Author:
tg
Message:

add experimental support for nokernel targets (mips and i386 for now)
requested by wbx@

if something doesn't work right or you want to build packages for other
arches (say, arm) just tell me and I'll add them.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/freewrt/mk/build.mk

    r2715 r2795  
    4343world: $(DISTDIR) $(BUILD_DIR) $(PACKAGE_DIR) ${TOPDIR}/.cfg/FWRT_HAVE_DOT_CONFIG 
    4444        BASH='${BASH}' ${MBSH} ${TOPDIR}/scripts/scan-pkgs.sh 
    45 ifeq ($(strip ${FWRT_PACKAGE_BASE_FILES}),m) 
     45ifeq ($(strip ${FWRT_TARGET_NOKERNEL}),y) 
     46        $(MAKE) -f mk/build.mk tools/install toolchain/install package/compile package_index 
     47else ifeq ($(strip ${FWRT_PACKAGE_BASE_FILES}),m) 
    4648        $(MAKE) -f mk/build.mk tools/install toolchain/install target/config-prepare target/compile package/compile 
    4749        @echo Running allmodconfig succeeded. 
  • trunk/freewrt/mk/targets.mk

    r2671 r2795  
    4242endef 
    4343 
     44define nokerneltarget_template 
     45ifeq ($(FWRT_LINUX_$(4)),y) 
     46KERNEL:=$(1) 
     47BOARD:=$(2) 
     48DEVICE:=$(3) 
     49endif 
     50endef 
     51 
    4452 
    4553# asus models 
     
    6472$(eval $(call target_template,2.6,x86,wrap,2_6_X86_WRAP)) 
    6573$(eval $(call target_template,2.6,x86,cryptotoken,2_6_X86_CRYPTOTOKEN)) 
     74# nokernel targets 
     75$(eval $(call nokerneltarget_template,2.4,pkgmips,mips,NOKERNEL_MIPS)) 
     76$(eval $(call nokerneltarget_template,2.4,pkgi386,i386,NOKERNEL_I386)) 
     77 
    6678 
    6779define rootfs_template 
     
    7890$(eval $(call rootfs_template,yaffs2,YAFFS2,root=/dev/mtdblock1)) 
    7991$(eval $(call rootfs_template,initramfs,INITRAMFS)) 
     92$(eval $(call rootfs_template,none,NONE)) 
    8093 
    8194 
    8295# set kernel version 
     96KERNEL_VERSION=${UNAME_R} 
    8397ifeq ($(KERNEL),2.4) 
    84 KERNEL_VERSION=2.4.34 
    8598KERNEL_RELEASE=1 
    8699KERNEL_MOD_SUFFIX=o 
    87100endif 
    88101ifeq ($(KERNEL),2.6) 
    89 KERNEL_VERSION=2.6.19.1 
    90102KERNEL_RELEASE=1 
    91103KERNEL_MOD_SUFFIX=ko 
    92104endif 
     105 
    93106 
    94107# set architecture 
     
    103116endif 
    104117 
    105 # set architecture 
    106118ifeq ($(BOARD),x86) 
    107119CPU_ARCH=i386 
    108120KERNEL_ARCH=i386 
    109121endif 
     122 
     123ifeq (${BOARD},pkgmips) 
     124CPU_ARCH=       mipsel 
     125KERNEL_ARCH=    mips 
     126endif 
     127 
     128ifeq (${BOARD},pkgi386) 
     129CPU_ARCH=       i386 
     130KERNEL_ARCH=    i386 
     131endif 
     132 
    110133 
    111134FWRT_VERSION=devel 
  • trunk/freewrt/package/Config.in

    r2703 r2795  
    444444 
    445445menu "Kernel Module Selection" 
     446if FWRT_TARGET_NOKERNEL 
     447comment "XXX do not bother to change, these are ignored anyway" 
     448endif 
    446449source "target/linux/Config.in" 
    447450endmenu 
  • trunk/freewrt/package/Config.in.runtime

    r2504 r2795  
    8787        default n 
    8888        depends on FWRT_PACKAGE_FWCF 
     89        depends on !FWRT_TARGET_NOKERNEL 
    8990        help 
    9091          This will create an image that, once booted, will erase the fwcf 
  • trunk/freewrt/target/Config.in

    r2711 r2795  
    1616source "target/linux/x86-2.4/Config.in" 
    1717source "target/linux/x86-2.6/Config.in" 
     18source "target/linux/nokernel/Config.in" 
    1819endchoice 
    1920 
     
    108109          create a initramfs only. 
    109110 
     111config FWRT_TARGET_ROOTFS_NONE 
     112        bool "none, only generate packages" 
     113        depends on FWRT_TARGET_NOKERNEL 
     114        help 
     115          do not create a root filesystem 
     116 
    110117endchoice 
    111118endmenu 
  • trunk/freewrt/target/Config.in.kernel

    r2504 r2795  
     1config FWRT_TARGET_NOKERNEL 
     2        bool 
     3        default n 
     4        select FWRT_LINUX_2_4 
     5 
    16config FWRT_KERNEL_SQUASHFS 
    27        boolean