Browse Source

Stefan Fiedler:


			
			
				rocklinux
			
			
		
Stefan Fiedler 20 years ago
parent
commit
2cddd6a282
6 changed files with 39 additions and 20 deletions
  1. +10
    -10
      package/base/linux/config-500.in
  2. +8
    -0
      package/base/linux/preconfig.in
  3. +14
    -6
      scripts/config.in
  4. +5
    -2
      target/bootdisk/config.in
  5. +1
    -1
      target/epiam/config.in
  6. +1
    -1
      target/lvp/config.in

+ 10
- 10
package/base/linux/config-500.in

@ -20,36 +20,37 @@
#
# --- ROCK-COPYRIGHT-NOTE-END ---
if pkgcheck linux X
if pkgcheck linux=linux24 X || pkgcheck linux=linux26 X || \
pkgcheck linux=linux24-source X || pkgcheck linux=linux26-source X
then
menu_begin MENU_PKG_LINUX 'Linux Kernel Options'
bool 'Place linux24 sources in /usr/src' \
ROCKCFG_PKG_LINUX_SRC24 0
if [ "$ROCKCFG_PKG_LINUX_SRC24" = 1 ]; then
pkgfork linux linux24-source
if [ "$ROCKCFG_PKG_LINUX_SRC24" = 0 ]; then
pkgdisable linux24-source
fi
bool 'Place linux26 sources in /usr/src' \
ROCKCFG_PKG_LINUX_SRC26 1
if [ "$ROCKCFG_PKG_LINUX_SRC26" = 1 ]; then
pkgfork linux linux26-source
if [ "$ROCKCFG_PKG_LINUX_SRC26" = 0 ]; then
pkgdisable linux26-source
fi
bool 'Build and install a linux24 kernel' \
ROCKCFG_PKG_LINUX_IMG24 0
if [ "$ROCKCFG_PKG_LINUX_IMG24" = 1 ]; then
pkgfork linux linux24
if [ "$ROCKCFG_PKG_LINUX_IMG24" = 0 ]; then
pkgdisable linux24
fi
bool 'Build and install a linux26 kernel' \
ROCKCFG_PKG_LINUX_IMG26 1
if [ "$ROCKCFG_PKG_LINUX_IMG26" = 1 ]; then
pkgfork linux linux26 stages -X---5---9
if [ "$ROCKCFG_PKG_LINUX_IMG26" = 0 ]; then
pkgdisable linux26
fi
case "$ROCKCFG_PKG_LINUX_IMG24$ROCKCFG_PKG_LINUX_IMG26" in
@ -102,6 +103,5 @@ then
%include package/*/*/pkg_config_linux.in
menu_end
pkgremove linux
fi

+ 8
- 0
package/base/linux/preconfig.in

@ -0,0 +1,8 @@
if pkgcheck linux X
then
pkgfork linux linux24 unflag CORE
pkgfork linux linux24-source unflag CORE
pkgfork linux linux26 stages -X---5---9
pkgfork linux linux26-source
pkgremove linux
fi

+ 14
- 6
scripts/config.in

@ -87,9 +87,6 @@ block_begin 7
comment '-- WARNING: Test-building packages which are not known to cross build'
comment '-- might cause damage on your build system if it is not read-only. So'
comment '-- only run this if your /{bin,lib,usr,..} is somehow write-protected.'
pkgfilter sed -e 's,^\(. ..\)[^ ]*,\1--------,; s,^\(. .\)[1X?],\11,; s,^\(. \)X,\1-,;'
else
pkgfilter sed -e 's,^\(. ..\)[^ ]*,\1--------,; s,^\(. .\)[1X],\11,; s,^\(. .\)?,\1-,; s,^\(. \)X,\1-,;'
fi
ROCKCFG_ID="$ROCKCFG_ID-cross" ; ROCKCFGSET_USE_CROSSCC=1
const ROCKCFG_PSEUDONATIVE 0
@ -103,10 +100,7 @@ block_begin 7
text 'IP of native host for command forwarding' ROCKCFG_PSEUDONATIVE_NATIVEHOST ''
text 'NFSROOT to be mounted on native host' ROCKCFG_PSEUDONATIVE_NFSROOT "$HOSTNAME:$PWD"
pkgfilter sed -e 's,^\(. .\)[?X],\1-,; s,^\(. \)X,\10,;'
ROCKCFG_ID="$ROCKCFG_ID-pseudonative" ; ROCKCFGSET_USE_CROSSCC=1
else
pkgfilter sed -e 's,^\(. .\)[?X],\1-,; s,^\(. \)X,\1-,;'
fi
fi
block_end
@ -115,6 +109,20 @@ block_end
%include target/*/preconfig.in
%include package/*/*/preconfig.in
if [ "$ROCKCFG_CROSSBUILD" = 1 ] ; then
if [ $ROCKCFG_CROSS_TESTALL = 1 ]; then
pkgfilter sed -e 's,^\(. ..\)[^ ]*,\1--------,; s,^\(. .\)[1X?],\11,; s,^\(. \)X,\1-,;'
else
pkgfilter sed -e 's,^\(. ..\)[^ ]*,\1--------,; s,^\(. .\)[1X],\11,; s,^\(. .\)?,\1-,; s,^\(. \)X,\1-,;'
fi
else
if [ "$ROCKCFG_PSEUDONATIVE" = 1 ] ; then
pkgfilter sed -e 's,^\(. .\)[?X],\1-,; s,^\(. \)X,\10,;'
else
pkgfilter sed -e 's,^\(. .\)[?X],\1-,; s,^\(. \)X,\1-,;'
fi
fi
comment ' '
comment_id '- Target Distribution' COMMENT_TARGET

+ 5
- 2
target/bootdisk/config.in

@ -39,10 +39,13 @@ pkgfilter sed '
/ kbd / { p; d; }; / eject / { p; d; };
/ popt / { p; d; };
/ mdadm / { p; d; }; / ntfsprogs / { P; d; };
/ linux / { p; d; }; / ddrescue / { p; d; };
/ ddrescue / { p; d; };
/ iproute2 / { p; d; }; / wget / { p; d; };
/ kiss / { p; d; }; / udev / { p; d; };
/ gmp / { p; d; }; / rockinitrd / { p; d; };
/ linux=linux26 / { p; d; };
/ linux=linux26-source / { p; d; };
# Select some non-base packages
/ lzo / { p; d; };
@ -84,7 +87,7 @@ ROCKCFGSET_DISABLE_NLS=1
ROCKCFGSET_OPTSIZE=1
ROCKCFGSET_LIMITCXX=1
if [ $ROCKCFG_PKG_LINUX_DEFAULT = linux26 ] ; then
if [ "$ROCKCFG_PKG_LINUX_DEFAULT" = linux26 ] ; then
pkgremove lvm
fi

+ 1
- 1
target/epiam/config.in

@ -29,7 +29,7 @@ pkgfilter sed '
# / xv / { s/^X /O /; p; d; };
/ wu-ftp / { s/^X /O /; p; d; };
/ gcc2 / { s/^X /O /; p; d; };
/ linux26* / { s/^X /O /; p; d; };
/ linux=linux26* / { s/^X /O /; p; d; };
/ module-init-tools / { s/^X /O /; p; d; };
/ bootsplash / { s/^X /O /; p; d; };

+ 1
- 1
target/lvp/config.in

@ -59,7 +59,7 @@ pkgfilter sed '
/ libtiff / { p; d; };
/ libtool / { p; d; };
/ libungif / { p; d; };
/ linux / { p; d; };
/ linux=[^ ]* / { p; d; };
/ linux-libc-headers / { p; d; };
/ lvp / { p; d; };
/ m4 / { p; d; };

Loading…
Cancel
Save