Annotation of elwix/config/rc.elwix.i386, revision 1.5

1.2       misho       1: # ELWIX project setup
                      2: #
                      3: # (C) AITNET ltd - Sofia/Bulgaria <office@aitnet.org>
                      4: #    by Michael Pounov <misho@elwix.org>
                      5: #
1.5     ! misho       6: # $Id: rc.elwix.i386,v 1.4.2.6 2021/03/25 19:52:23 misho Exp $
1.2       misho       7: #
                      8: ELWIX_IS_CONFIGURED="YES"
                      9: 
1.5     ! misho      10: VERSION="2.7_x86"
1.2       misho      11: PLATFORM="elwix"
                     12: TIMEZONE="Europe/Sofia"
                     13: BUILD_DATE=`date "+%Y-%m-%d"`
                     14: 
                     15: TARGET="i386"
                     16: TARGET_ARCH="i386"
                     17: TARGET_BUILD="${TARGET_ARCH}-${PLATFORM}-freebsd"
1.5     ! misho      18: PARALLEL_BUILD="-j8"
1.2       misho      19: 
                     20: CURDIR=$(pwd)
                     21: CFGDIR="${CURDIR}/config"
                     22: 
                     23: SRCCONF="${CFGDIR}/src_${TARGET}.conf"
                     24: MAKECONF="${CFGDIR}/make_${TARGET}.conf"
                     25: 
                     26: PREDIR=".."
                     27: 
                     28: # Dont change TOPDIR!!!
                     29: TOPDIR="${CURDIR}/build/${VERSION}"
                     30: #
1.5     ! misho      31: BSDSRC="/usr/home/misho/work/freebsd.src"
        !            32: ADDSRC="/usr/home/misho/work/embedaddon"
1.2       misho      33: 
                     34: REL="${TOPDIR}/release"
                     35: DEST="${TOPDIR}/destdir"
                     36: OBJS="${TOPDIR}/obj"
                     37: ADIR="${TOPDIR}/arch"
                     38: 
                     39: WORLD="${ADIR}/${TARGET_ARCH}/world"
                     40: KERN="${ADIR}/${TARGET_ARCH}/kernel"
                     41: KERN_ROOTFS="${ADIR}/${TARGET_ARCH}/kernel.rootfs"
                     42: KERN_NFS="${ADIR}/${TARGET_ARCH}/kernel.nfs"
                     43: PKG="${ADIR}/${TARGET_ARCH}/pkg"
                     44: AIT="${ADIR}/${TARGET_ARCH}"
                     45: BSDOBJ="${OBJS}/${TARGET_ARCH}"
                     46: BSDTOOLS="${BSDSRC}/tools/tools"
                     47: PKGDIR="${WORLD}/elwix/pkg"
1.4       misho      48: CROSSTOOLDIR="${BSDOBJ}/${BSDSRC}/${TARGET}.${TARGET_ARCH}/tmp"
1.2       misho      49: 
1.3       misho      50: ### Compile depended tools for uboot and etc ...
                     51: COMPILE_DEPTOOLS="YES"
                     52: 
1.2       misho      53: ### Kernel
                     54: BSDKERNCONF="${BSDSRC}/sys/${TARGET}/conf"
                     55: KERNDEVHINTS="${BSDKERNCONF}/GENERIC.hints"
                     56: 
                     57: KERNHINT="ELWIX_i386.hints"
                     58: 
                     59: KERNEL="${KERN}/boot/kernel/kernel"
                     60: KERNCONF="ELWIX_i386"
                     61: 
                     62: KERNEL_ROOTFS="${KERN_ROOTFS}/boot/kernel/kernel"
                     63: KERNCONF_ROOTFS="ELWIX_i386_ROOTFS"
                     64: 
                     65: KERNEL_NFS="${KERN_NFS}/boot/kernel/kernel"
                     66: KERNCONF_NFS="ELWIX_i386_NFS"
                     67: 
                     68: ### Rootfs
                     69: ROOTFS_MKDIR="${ADIR}/${TARGET_ARCH}/elwix"
                     70: ROOTFS_CONF="elwix_firmware.conf"
                     71: 
                     72: ROOTFS="${DEST}/rootfs"
                     73: ROOTFS_ETC="${CFGDIR}/etc/rootfs"
                     74: ELWIX_ROOTFS="${CFGDIR}/elwix_rootfs.conf"
                     75: 
                     76: ROOTFS_KERN="kernel_rootfs.gz"
                     77: 
                     78: ROOTFS_IMG="rootfs.img"
1.5     ! misho      79: ROOTFS_SIZE="13440k"
        !            80: 
        !            81: OBJDUMP="/usr/local/bin/i386-unknown-freebsd14.0-objdump"
1.2       misho      82: 
                     83: ### tools Firmware
                     84: LOCALFS_IMG="elwix-pkg.frm"
                     85: 
                     86: ### 3th party
                     87: ROMFS_USR2="${DEST}/romfs.pkg"
                     88: ROMFS_IMG2="elwix-firmware2.sys"
                     89: #ROMFS_SIZE2="40m"
                     90: 
                     91: ### RomFS Firmware
                     92: ROMFS="${DEST}/romfs"
                     93: ELWIX_ROMFS="${CFGDIR}/elwix_romfs.conf"
                     94: 
                     95: ROMFS_USR="${ROMFS}/usr"
                     96: ROMFS_IMG="elwix-firmware.sys"
                     97: #ROMFS_SIZE="38m"
                     98: 
                     99: ### Base Firmware
                    100: BASEFS="${DEST}/base"
                    101: ELWIX_BASEFS="${CFGDIR}/elwix_base.conf"
                    102: 
                    103: BASE_FS="${DEST}/base.fs"
                    104: BASE_ETC="${CFGDIR}/etc/default"
1.4       misho     105: BASE_OS="ELWIX-${VERSION}_base_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     106: 
                    107: ### FS Image
                    108: FS="${DEST}/elwix.fs"
                    109: FS_ETC="${CFGDIR}/etc/default"
1.3       misho     110: OS="ELWIX-${VERSION}_rootfs_64mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     111: 
                    112: FS_EXT="${DEST}/elwix_ext.fs"
                    113: FS_EXT_ETC="${CFGDIR}/etc/default"
1.3       misho     114: OS_EXT="ELWIX-${VERSION}_rootfsext_128mb_${TARGET_ARCH}_${BUILD_DATE}.tar.gz"
1.2       misho     115: 
                    116: ### Make OS Image
                    117: IMG_SIZE=62592
                    118: IMG_SIZE128=125100
1.4       misho     119: IMG_SIZE256=251496
                    120: IMG_SIZE512=500472
1.2       misho     121: 
1.4       misho     122: CFG_NAND_SIZE=524288
1.2       misho     123: 
                    124: IMGNAME="${REL}/ELWIX-${VERSION}_${TARGET_ARCH}"
                    125: 
                    126: ### Cross
                    127: CBUILD="${DEST}/cross_build.sh"
                    128: CGBUILD="${DEST}/cross_gbuild.sh"
                    129: CEXEC="${DEST}/cross_exec.sh"
                    130: CENV="${DEST}/cross_env.sh"
                    131: 
                    132: CROSS_FT_ATH="${BSDTOOLS}/ath"
                    133: CROSS_FT_IPW="${BSDTOOLS}/ipw"
                    134: CROSS_FT_IWI="${BSDTOOLS}/iwi"
                    135: CROSS_FT_MWL="${BSDTOOLS}/mwl"
                    136: CROSS_FT_NET80211="${BSDTOOLS}/net80211"
                    137: CROSS_FT_VIMAGE="${BSDTOOLS}/vimage"
                    138: CROSS_FT_WTAP="${BSDTOOLS}/wtap"
1.4       misho     139: CROSS_FT_CXGB="${BSDTOOLS}/cxgbtool"
                    140: CROSS_FT_IFINFO="${BSDTOOLS}/ifinfo"
                    141: CROSS_FT_MCTEST="${BSDTOOLS}/mctest"
                    142: CROSS_FT_NETMAP="${BSDTOOLS}/netmap"
                    143: CROSS_FT_NETBLAST="${BSDTOOLS}/netrate/netblast"
                    144: CROSS_FT_NETRCV="${BSDTOOLS}/netrate/netreceive"
                    145: CROSS_FT_NETSND="${BSDTOOLS}/netrate/netsend"
                    146: 
                    147: CROSS_PATH="../"
1.5     ! misho     148: CROSS_TOOLS="libelwix 
        !           149:                libaitsched
        !           150:                libaitcfg
        !           151:                libaitio
        !           152:                libaitrpc
        !           153:                libaitwww
        !           154:                libaitsync
        !           155:                libaitcli
        !           156:                libaitmqtt
        !           157:                embedtools
        !           158:                ansh mqtt
        !           159:                wifinator
        !           160:                tftpd"
1.4       misho     161: CROSS_PFX="--prefix=${WORLD}/usr/local --host=${TARGET_BUILD}"
                    162: 
                    163: # additional options to software // <cross_tools_item>_OPTS
                    164: libaitio_OPTS="--enable-aio"
                    165: libaitsched_OPTS="--enable-aio"
                    166: mqtt_OPTS="--with-sqlite3dir=${WORLD}/usr/local"
                    167: 
                    168: # 3th party softwares
                    169: CROSS_3THPATH="../embedaddon/"
1.5     ! misho     170: CROSS_3THPARTY="mini_sendmail ttcp iperf hping2 
        !           171:                        libnet arping mtr bmon
        !           172:                        mpd dnsmasq freevrrpd
        !           173:                        ipguard choparp 
        !           174:                        pimd pimdd 
        !           175:                        readline bird bird6"
1.4       misho     176: 
                    177: mini_sendmail_MAKE="${CBUILD}"
                    178: ttcp_MAKE="${CBUILD}"
                    179: iperf_MAKE="${CBUILD}"
                    180: libnet_MAKE="${CBUILD}"
                    181: arping_MAKE="${CBUILD}"
                    182: hping2_MAKE="${CBUILD}"
                    183: mtr_MAKE="${CBUILD}"
                    184: bmon_MAKE="${CGBUILD}"
                    185: mpd_MAKE="${CBUILD}"
                    186: dnsmasq_MAKE="${CBUILD}"
                    187: pimd_MAKE="${CBUILD}"
                    188: pimdd_MAKE="${CBUILD}"
                    189: freevrrpd_MAKE="${CBUILD}"
                    190: ipguard_MAKE="${CBUILD}"
                    191: choparp_MAKE="${CBUILD}"
                    192: readline_MAKE="${CGBUILD}"
                    193: bird_MAKE="${CGBUILD}"
                    194: bird6_MAKE="${CGBUILD}"
1.2       misho     195: 
                    196: #####
                    197: [ -r ${CFGDIR}/rc.subr ] && . ${CFGDIR}/rc.subr
                    198: #####

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>