about summary refs log tree commit diff stats
path: root/core/ports/linux-gnu/Pkgfile
blob: 24acdfb6cae666de9bbe86773a7721d6892f93b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Description:  Linux libre kernel that comes without blobs
# URL:          http://linux-libre.fsfla.org
# Maintainer:   Silvino, silvino at bk dot ru
# Depends on:

name=linux-gnu
version=4.9.86
release=2
source=(http://linux-libre.fsfla.org/pub/linux-libre/releases/$version-gnu/linux-libre-$version-gnu.tar.xz \
    cpu_optimizations.patch \
    port-cpu.patch \
    config-crux)

build() {

    mkdir -p $PKG/usr/src

    # /usr/src/version-cpu_optimizations.patch
    install -m 0644  $SRC/cpu_optimizations.patch $PKG/usr/src/${version}-cpu_optimizations.patch

    cd linux-$version

    make distclean

    patch -p1 < $SRC/cpu_optimizations.patch

    cp $SRC/config-crux .config

    make silentoldconfig
    # make nconfig
    # make localmodconfig

    make prepare

    #make LOCALVERSION= bzImage modules
    make LOCALVERSION= all
    make INSTALL_MOD_PATH=$PKG modules_install

    install -m 0644 -D arch/x86_64/boot/bzImage $PKG/boot/vmlinuz-$version-gnu
    install -m 0644  System.map $PKG/boot/System.map-$version-gnu
    install -m 0644 .config $PKG/boot/config-$version-gnu
    install -m 0644 .config $PKG/usr/src/config-${version}-gnu

    rm ${PKG}/lib/modules/${version}-gnu/source
    rm ${PKG}/lib/modules/${version}-gnu/build

    ln -s /usr/src/linux-${version} $PKG/lib/modules/${version}-gnu/source
    ln -s /usr/src/linux-${version} $PKG/lib/modules/${version}-gnu/build
}
K. Agaram <vc@akkartik.com> 2015-05-04 11:11:35 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-05-04 11:11:35 -0700 1250' href='/akkartik/mu/commit/cpp/073scenario_screen_test.mu?h=main&id=1fd41772092d1c9031c2921f47419bf2de31a528'>1fd41772 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

                                                                            
                                        
                                 
       


                                                           






                         
                                                 
                                 
       
               
                       

                                                           
                                  
                                                                               
                
                                                             






                         
# To check our support for screens in scenarios, rewrite tests from print.mu

scenario print-character-at-top-left-2 [
  assume-screen 3/width, 2/height
  run [
    local-scope
    a:character <- copy 97/a
    screen:address:screen <- print screen:address:screen, a
  ]
  screen-should-contain [
    .a  .
    .   .
  ]
]

scenario clear-line-erases-printed-characters-2 [
  assume-screen 5/width, 3/height
  run [
    local-scope
    # print a character
    a:character <- copy 97/a
    screen:address:screen <- print screen:address:screen, a
    # move cursor to start of line
    screen:address:screen <- move-cursor screen:address:screen, 0/row, 0/column
    # clear line
    screen:address:screen <- clear-line screen:address:screen
  ]
  screen-should-contain [
    .     .
    .     .
    .     .
  ]
]