Changeset 155f6c8c in freewrt


Ignore:
Timestamp:
Jun 14, 2007, 2:55:49 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
91543df
Parents:
15ddbfc
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.

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

Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • mk/build.mk

    r15ddbfc r155f6c8c  
    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.
  • mk/targets.mk

    r15ddbfc r155f6c8c  
    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
  • package/Config.in

    r15ddbfc r155f6c8c  
    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
  • package/Config.in.runtime

    r15ddbfc r155f6c8c  
    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
  • target/Config.in

    r15ddbfc r155f6c8c  
    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
  • target/Config.in.kernel

    r15ddbfc r155f6c8c  
     1config FWRT_TARGET_NOKERNEL
     2        bool
     3        default n
     4        select FWRT_LINUX_2_4
     5
    16config FWRT_KERNEL_SQUASHFS
    27        boolean
Note: See TracChangeset for help on using the changeset viewer.